[pstricks] pst-optexp: Custom component with multiple, , reflections?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jul 21 18:44:14 CEST 2016


Am 21.07.2016 um 15:32 schrieb Lars O. Grobe:

> before I give up on this - is this case of ray-tracing in Tex/PS just
> too much, or did I simply miss an important detail in my example? I am
> ready to draw rays by hand, but feel sorry for having been close to such
> a powerful tool...

If you need only one or two lines then use pst-eucl:


\documentclass{article}
\usepackage{pst-eucl}
\usepackage{auto-pst-pdf}

\begin{document}
	
\begin{pspicture}[showgrid=true](-4,-5)(4,0)
\psset{PointSymbol=none,PointName=none}
% Comment the above line to see all points
\pstGeonode(0,0){O}(0,-4){A1}(0,-5){A2}(-3,-1.5){B1}(-2.5,-3){B2}
\psarc(O){4}{225}{315}
\psarc(O){5}{225}{315}
\pstInterLC{B1}{B2}{O}{A1}{M1}{M2}
\psline[linecolor=red]{->}(B1)(M2)
\pstOrtSym{O}{M2}{M1}[M1']
\psline[linecolor=red]{->}(M2)(M1')
\pstOrtSym{O}{M1'}{M2}[M1'']
\pcline[linecolor=red,nodesepB=15mm]{->}(M1')(M1'')
\end{pspicture}	
	
\end{document}

Herbert


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2016-07-21 18-43-56.png
Type: image/png
Size: 15937 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20160721/0aa8928d/attachment-0001.png>


More information about the PSTricks mailing list