Retour

octahedron_06.tex

Télécharger le fichier Fichier PDF
Image PNG
\documentclass{article}
\usepackage{pst-solides3d}
\begin{document}
\pagestyle {empty}
\begin{center}
\begin{pspicture}(-4,-4)(4,4)
\psset{lightsrc=50 30 20,viewpoint=20 10 5,Decran=50}
\psset{solidmemory}
%% definition de 2 points
\codejps{
/A0 {0 0 2} def
/B0 {0 0 -2} def
}
\psSolid[object=line,
   linecolor=black,
   base=A0 B0,
]
\psSolid[object=octahedron,
   a=2,
   trunc=all,
   hue=.5 .6,
   trunccoeff=.3333,
   name=my_octahedron,
   action=draw*]
\psSolid[object=point,
   args=0 0 2,
   linecolor=red,
   fontsize=15,
   text=point A,
   pos=uc,
]
\psSolid[object=point,
   args=0 0 -2,
   linecolor=red,
   fontsize=15,
   text=point B,
   pos=dc,
]
\psSolid[object=line,
   linecolor=black,
   linestyle=dashed,
   base=A0 B0,
]
\composeSolid
\end{pspicture}
\end{center}
 
\end{document}