[pstricks] parametricplotThreeD and psplotThreeD and cartesian parametrization
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Jun 5 16:11:02 CEST 2008
A. Erhardt schrieb:
> I am trying to show the results or different parametrizations of 3D surfaces (example: demi-sphere) to my students
> in the subject of mathematics/vector analysis.
>
> I was trying to produce something like the enclosed picture "topf.tif". While I have no problem with the picture b)
> (except for the hidden line problem which I sent in a different email)
> I had quite a problem with a) I finally made it but in a real glumsy way.
use the \pstThreeDCircle macro ...
Herbert
\documentclass[11pt]{article}
\usepackage{pstricks}
\usepackage{pst-3dplot}
\begin{document}
\begin{pspicture}(-5,0)(15,10)
%\psset{unit=10.0mm,Alpha=90, Beta=0}
\psset{unit=30.0mm,Alpha=45, Beta=15, xPlotpoints=500,linewidth=0.8pt}
\def\Radius{1 }
\psset{beginAngle=0,endAngle=180}
% in x-direction
\multido{\rA=0.0+0.15}{6}{%
\pstThreeDCircle[style=hiddenStyle](\rA,0,0)%
(0,1 \rA\space dup mul sub sqrt ,0)%
(0,0,1 \rA\space dup mul sub sqrt )}
\pstThreeDCircle(0.95,0,0)%
(0,1 0.95 dup mul sub sqrt ,0)%
(0,0,1 0.95 dup mul sub sqrt )
% in y-direction
\multido{\rA=0.0+0.15}{6}{%
\pstThreeDCircle(0,\rA,0)%
(1 \rA\space dup mul sub sqrt ,0,0)%
(0,0,1 \rA\space dup mul sub sqrt )}
\pstThreeDCircle(0,0.95,0)%
(1 0.95 dup mul sub sqrt ,0,0)%
(0,0,1 0.95 dup mul sub sqrt )
\pstThreeDCoor[xMin=-.5, xMax=2.0, yMin=-.5, yMax=2.0, zMin=-.5, zMax=1.5,
linecolor=black, linewidth=0.6pt]
\pstThreeDCircle[endAngle=360](0,0,0)(1,0,0)(0,1,0)
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list