Drawing of optical lens

Yes, it's possible. You can use the drawing=false option:

\documentclass{article}
\usepackage{pst-optic}

\begin{document}

\begin{pspicture*}(-7.5,-3)(7.5,3)
\rput(0,0){\lens[lensGlass=true,lensWidth=0.5,lensType=DVG,drawing=false]}%
\rput(2,0){\lens[lensGlass=true,lensWidth=0.5,lensType=CVG,drawing=false]}%
\end{pspicture*}

\end{document}

enter image description here

The default color for lensColor is lightgray (it can be found in pst-optic.tex).


If it's about drawing a lens only, you can also use pst-optexp for this:

\documentclass[pstricks, margin=5pt]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(10,5)
  \pnodes(0,2.5){A}(10,2.5){B}
  \psset[optexp]{lensheight=4}
  \addtopsstyle{OptComp}{fillstyle=solid, fillcolor=blue!10}
  \lens[abspos=1, lensradius=4 4](A)(B)
  \lens[abspos=3, lensradius=-4 -4](A)(B)
  \lens[abspos=5, lensradius=4 -4](A)(B)
  \lens[abspos=7, lensradius=8 0](A)(B)
  \lens[abspos=9, lensradius=8 5, lenswidth=1](A)(B)
\end{pspicture}
\end{document}

enter image description here

Tags:

Pst Optic