Hi everyone!<br>I&#39;m having some trouble with psBox and pstThreeDBox. Below is an example code, here a brief overview:<br><br>Fig.1: psBox seems to have a bit of trouble interpreting my coordinates. Here all three cubes should have their origin one (1) unit from the origin, but have for some reason doubled to two units?<br>
<br>Fig.2: This is what Fig.1 should look like - I am assuming based my understanding of the documentation that says both psBox and pstThreeDBox have vector o determining their origins.<br><br>Fig.3: Swooshing round to see the back of the construction, the pstThreeDBox-es, which should be solid, show  weird &quot;hidden&quot; lines. The fillstyle=solid only seems to work on the from three sides, but then even the hidden lines aren&#39;t completely correct as the vertical one is missing.<br>
<br>Fig.4: This is what I want Fig 3 to look like, however the axes are wrong here, and I had to manually correct the origin of one of the boxes. What I thought would be possible would be to use the code for Fig.2 and then simply rotate it to get the desired alternative views. This is quite important as my actual drawing involves 36 cuboids, and it would be very complicated for me to rewrite all their coordinates to get a few alternative views. Is there any simpler way?<br>
<br>Any help will be greatly appreciated!<br>Maja<br><br>******************************************************************************************************<br>\documentclass{article}<br>\pagestyle{empty}<br>\usepackage{pstricks, pst-3dplot}<br>
\begin{document}<br><br>\begin{figure}<br>\begin{centering}<br>\begin{pspicture}(-3,-3)(3,3)<br>\pstThreeDCoor[IIIDticks=true]<br>\psBox[showInside=false](1,0,0){1}{1}{1}<br>\psBox[showInside=false](0,1,0){1}{1}{1}<br>\psBox[showInside=false](0,0,1){1}{1}{1}<br>
\end{pspicture}<br>\caption{The origins are the same as in the next figure but seem to have doubled somehow?}<br>\end{centering}<br>\end{figure}<br><br>\begin{figure}<br>\begin{centering}<br>\begin{pspicture}(-3,-3)(3,3)<br>
\pstThreeDCoor[IIIDticks=true]<br>\pstThreeDBox[fillstyle=solid](0,0,1)(1,0,0)(0,1,0)(0,0,1)<br>\pstThreeDBox[fillstyle=solid](0,1,0)(1,0,0)(0,1,0)(0,0,1)<br>\pstThreeDBox[fillstyle=solid](1,0,0)(1,0,0)(0,1,0)(0,0,1)<br>\end{pspicture}<br>
\caption{This one works perfectly... form this perspective that is...}<br>\end{centering}<br>\end{figure}<br><br>\begin{figure}<br>\begin{centering}<br>\begin{pspicture}(-3,-3)(3,3)<br>\pstThreeDBox[RotZ=180, fillstyle=solid](1,0,0)(1,0,0)(0,1,0)(0,0,1)<br>
\pstThreeDBox[RotZ=180, fillstyle=solid](0,1,0)(1,0,0)(0,1,0)(0,0,1)<br>\pstThreeDBox[RotZ=180, fillstyle=solid](0,0,1)(1,0,0)(0,1,0)(0,0,1)<br>\pstThreeDCoor[RotZ=180,IIIDticks=true]<br>\end{pspicture}<br>\caption{Turning round the axis and boxes by 180 degrees shows the unsightly backs..}<br>
\end{centering}<br>\end{figure}<br><br>\begin{figure}<br>\begin{centering}<br>\begin{pspicture}(-3,-3)(3,3)<br>\pstThreeDCoor[IIIDticks=true]<br>\pstThreeDBox[fillstyle=solid](0,1,0)(1,0,0)(0,1,0)(0,0,1)<br>\pstThreeDBox[fillstyle=solid](1,0,0)(1,0,0)(0,1,0)(0,0,1)<br>
\pstThreeDBox[fillstyle=solid](1,1,1)(1,0,0)(0,1,0)(0,0,1)<br>\end{pspicture}<br>\caption{This is the back view I would like, but of course with the axes in position and without having to rewrite the coordinates!}<br>\end{centering}<br>
\end{figure}<br><br><br>\end{document}<br>************************************************************************************************************************<br><br>PS. There is another bug in \psBox namely the height parameter gets ignored and the depth gets used instead. (This is not an issue in the above example as they are all cubes). Herbert has been kind enough to tell me the fix before its uploaded:<br>
\pssetlength\pst@dima{#4}\pssetlength\pst@dimb{#5}\pssetlength\pst@dimc{#6}<br><div id=":18c" class="ii gt">
<br>
the last parameter must be #6, but in the current file it 
is #5</div><br>