[pstricks] hiddenLine and parametricplotThreeD

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Jun 4 16:44:16 CEST 2008


A. Erhardt schrieb:

> I am having problems with parametricplotThreeD and the hiddenLine option.
> In the statement
> \parametricplotThreeD[xPlotpoints=500, yPlotpoints=20, hiddenLine=true](0,360)(-90,90){...}
> setting hiddenLine=true or hiddenLine=false shows the same result.
> 
> How can I hide the invisible lineses with parametricplotThreeD?

In this case the improved hidden line style doesn't really
work. You can draw the circles only for the visible part
or use the package pst-solide3d for central projection.

The first solution:
\begin{pspicture}(-5,0)(15,10)
\psset{unit=30.0mm,Alpha=45, Beta=15}
   \parametricplotThreeD[xPlotpoints=500, yPlotpoints=10](-45,135)(0,90){%
         /r 1.0 def
         r t cos mul u sin mul
         r t sin mul u sin mul
         r u cos  mul
   }
\parametricplotThreeD[xPlotpoints=500, yPlotpoints=8](0,90)(-45,135){%
         /r 1.0 def
         r u cos mul t sin mul
         r u sin mul t sin mul
         r t cos  mul
}
\pstThreeDCoor[xMin=-.5, xMax=2.0, yMin=-.5, yMax=2.0, zMin=-.5,
     zMax=1.5,linecolor=black,linewidth=0.6pt]
\end{pspicture}

Herbert



More information about the PSTricks mailing list