\makeatletter
\pstheader{prisme.pro}
\define@key[psset]{pst-V3D}{nF}{\def\pst@VIIID@nF{#1}} \define@key[psset]{pst-V3D}{nH}{\def\pst@VIIID@nH{#1}}
\psset[pst-V3D]{nF=12,nH=5}
\def\psPrisme{\pst@object{psPrisme}}
\def\psPrisme@i(#1,#2,#3)#4#5{{ \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
}\showpointsfalse
\end@ClosedObj}}
\makeatother

—
Syracuse — Dernière modification : 24 août 2006 (0.08s - 3835384 - 5 décembre 2008)