[pstricks] transmission grating in pst-optexp (Christoph Bersch)
Steffen Wittek
steffen.wittek at gmx.net
Fri Jul 12 12:26:31 CEST 2013
Hi Christoph,
thanks for your help. I only need the transmitted beams. Ideally there
are no reflections. The transmission gratings work like the normal
gratings only that they are transmissive. The operation is shown here:
http://www.light-all.com/Writable/Resource/_random_/2009-03-14/reflection_vs_transmission_gratings.jpg
Do you think that the variant can be extended. Or is there a new object
needed alltogether?
Steffen
El 7/12/13 12:00 PM, pstricks-request at tug.org escribió:
> do you have an examplary picture on how this should look like, or how it
> should behave?
>
> Should it be like a semitransparent mirror, that you can use both
> transmitted and reflected beams? Or do you only need the transmitted beams?
>
> The following example shows the simplest variant, but without raytracing
> (grating has only one interface):
>
> \documentclass{article}
> \usepackage{pst-optexp}
> \newOptexpDipole{transmissiongrating}
> \makeatletter
> \def\transmissiongrating at comp{%
> \psrotate(0,0){-90}{\optgrating at comp}}%
> \makeatother
> \begin{document}
> \begin{pspicture}[showgrid](5,5)
> \transmissiongrating(0,1)(5,1)
> \psdot[dotstyle=x](\oenodeCenter{})
> \drawbeam(0,1){}(5,1)
> %
> \transmissiongrating[angle=20, gratingalign=c](0,3)(5,3)
> \psdot[dotstyle=x](\oenodeCenter{})
> \drawbeam(0,3){}(5,3)
> \end{pspicture}
> \end{document}
More information about the PSTricks
mailing list