5

I'd like to draw cubes with PSTricks (pst-3dplot) as shown in the related question Draw a prism in TikZ or PSTricks like these two

two cubes

with correct hidden lines, but with the code given there (Simple Boxes with pst-3dplot),

\documentclass{article}
\usepackage{pst-3dplot}
\begin{document}   
\psset{coorType=1,Alpha=135}
\begin{pspicture}(-1,-2)(5,2.25)
%\pstThreeDCoor[xMin=-1,xMax=4,yMin=-1,yMax=4,zMin=-1,zMax=4]
\pstThreeDBox[hiddenLine=false](0,0,0)(0,0,3)(3,0,0)(0,3,0)
\end{pspicture}
%
\psset{coorType=2}
\begin{pspicture}(-3,-2)(2,2.25)
%\pstThreeDCoor[xMin=-1,xMax=4,yMin=-1,yMax=4,zMin=-1,zMax=4]
\pstThreeDBox[hiddenLine](0,0,0)(0,0,3)(3,0,0)(0,3,0)
\end{pspicture}
\end{document}

I don't get the wanted results: Only four lines (of the 6 most outer ones) are drawn as solid lines, all other lines are drawn as dashed lines:

cube

Using macro in/visibleLineStyle=dashed/solid didn't help.

What's going wrong?

Wolfgang

Now it works! But if I use coordinate system 6,

\begin{pspicture}(-3,-2)(5,5)
\psset{coorType=2}
\pstThreeDBox[linewidth=1.1pt](0,0,0)(0,0,3)(3,0,0)(0,3,0)
\end{pspicture}
%
\begin{pspicture}(-3,-2)(5,5)
\psset{coorType=6}
\pstThreeDBox[linewidth=1.1pt](0,0,0)(0,0,3)(3,0,0)(0,3,0)
\end{pspicture}

I get again a wrong result:

two cubes

1 Answers1

4

With the version 2.03 from http://archiv.dante.de/~herbert/texnik/tex/generic/pst-3dplot/ you'll get:

enter image description here

  • Now it works! But if I use coordinate system 6 (\psset{coorType=6}), I get again a wrong result (se above). – Wolfgang Büchel Sep 03 '14 at 08:29
  • the whole stuff needs some rewriting which will take some time. You can try the experimental version from http://texnik.dante.de/tex/generic/pst-3dplot/ which I updated in the morning. –  Sep 03 '14 at 08:41