sphere-sphere.tex 563 B

12345678910111213141516
  1. \documentclass[pstricks,border=2pt]{standalone}
  2. \usepackage{pst-solides3d}
  3. \begin{document}
  4. \begin{pspicture}(-4.5,-4)(5.5,2)
  5. \psset{solidmemory,unit=0.55,
  6. lightsrc=viewpoint,viewpoint=20 20 20 rtp2xyz,Decran=40}
  7. \psSolid[object=sphere,r=2,ngrid=36 36,fillcolor=lightgray,
  8. incolor=lightgray,hollow,name=sph1,action=none](3,0,0)
  9. \psSolid[object=sphere,r=2,ngrid=36 36,fillcolor=lightgray,
  10. incolor=lightgray,hollow,name=sph2,action=none](1,3,0)
  11. \psSolid[object=fusion,base=sph1 sph2,opacity=0.5,action=draw**](0,0,0)
  12. \end{pspicture}
  13. \end{document}