[pstricks] pst-optic \lens macro

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Aug 21 12:02:54 CEST 2011


Am 20.08.2011 15:06, schrieb roberto eduardo:

> I am working with pst-optic and do not understand the behavior of the
> macro \ lens when I use the following code:
>
> \lens[ lensType=CVG,  lensWidth= \pslinewidth,%
>                                 lensGlass=false,   lensHeight=11,%
>                                 lensColor=blue,   rayColor= black, %
>                                 focus = 2.5,       OA=-1.0, %
>                                 AB =3,             spotAi =270,%
>                                 spotBi =90,
>                                 xLeft = -3 , xRight =3, %
>                                 yBottom= -6 , yTop =6,%
>   ]}
>
> The ray tracing is wrong:
>
> 1) the ray through the focus object is refracted back
> 2) the ray that arrives at the lens parallel to the optical axis is
> refracted twice: one parallel to the optical axis and another going
> through the image focus (It is not drawing the extension of this ray
> to the object).
>
> Note that the distance lens-object  (|OA|) is smaller than the lens
> focal length (|F|) obtaining, then, a virtual image.

you can draw your own lines. All nodes are known, eg

\psline[linecolor=red,linestyle=dashed](B')(I)


Herbert


More information about the PSTricks mailing list