\makeatletter \pstheader{prisme.pro} \define@key[psset]{pst-V3D}{nF}{\def\pst@VIIID@nF{#1}} % nombre de facettes > 20 \define@key[psset]{pst-V3D}{nH}{\def\pst@VIIID@nH{#1}} % nombre de mailles en hauteur \psset[pst-V3D]{nF=12,nH=5}% \def\psPrisme{\pst@object{psPrisme}} \def\psPrisme@i(#1,#2,#3)#4#5{{% % (#1,#2,#3) coordonnées du centre % #4 rayon #5 hauteur \begin@ClosedObj% \use@par \addto@pscode{% 1 setlinejoin \tx@parametresIIID PrismeDict begin /incrementANGLE {360 \pst@VIIID@nF\space div} bind def /Hprisme #5 def /incrementHAUTEUR Hprisme \pst@VIIID@nH\space div def /Rprisme #4 def /CX #1 def /CY #2 def /CZ #3 def /PointsApresTransformations { 3 dict begin M11 Xpoint mul M12 Ypoint mul add M13 Zpoint mul add CX add M21 Xpoint mul M22 Ypoint mul add M23 Zpoint mul add CY add M31 Xpoint mul M32 Ypoint mul add M33 Zpoint mul add CZ add end } def /condition {PSfacette 0 gt} def MaillagePrisme FaceSup FaceInf end % prisme }% fin du code ps \showpointsfalse \end@ClosedObj}} \makeatother %