[pstricks] pst-solides3d mismatch between tow objects

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Oct 6 18:58:48 CEST 2010


Am 06.10.2010 16:33, schrieb Markus Krebs:

> I' dont really understand the rotX/rotY/rotZ-part of pst-solides3d.

it is always rotated in the sequence x y z:

\documentclass[a4paper,dvips]{article}
\usepackage{pst-solides3d}

\usepackage[margin=1cm]{geometry}

\begin{document}

\psset{viewpoint=65 30 10 rtp2xyz,Decran=120}
\begin{pspicture}(-5,-4)(5,2)
\psSolid[object=grille,base=-3 3 -1 1]
\axesIIID(5,5,1)
\end{pspicture}

\begin{pspicture}(-5,-4)(5,2)
\psSolid[object=grille,base=-3 3 -1 1,RotZ=90]
\axesIIID(5,5,1)
\end{pspicture}

\begin{pspicture}(-5,-4)(5,2)
\psSolid[object=grille,base=-3 3 -1 1,RotX=10]
\axesIIID(5,5,1)
\end{pspicture}

\begin{pspicture}(-5,-4)(5,2)
\psSolid[object=grille,base=-3 3 -1 1,RotZ=90,RotX=45]
\axesIIID(5,5,1)
\end{pspicture}

\end{document}

However, in your example you can use the object octahedron with a=sqrt(8)

Herbert


More information about the PSTricks mailing list