[pstricks] spherical triangle
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Feb 19 16:14:25 CET 2010
Am 19.02.2010 10:16, schrieb Paul Blaga:
> Can anybody suggest me how could I draw a spherical triangle with PSTricks? (similar to the drawing in the attachment).
only as an example it is derived from
http://tug.org/PSTricks/main.cgi?file=pst-plot/3D/examples#sphere12
Herbert
\documentclass{article}
\usepackage{pst-3dplot}
\begin{document}
\begin{pspicture}(-4,-4)(4,5)
\psset{Alpha=40,Beta=30,linestyle=dashed}
\pstThreeDCoor[xMin=-5,xMax=5,yMax=5,zMax=5,IIIDticks]
\pstThreeDEllipse[linecolor=red](0,0,0)(4,0,0)(0,0,4)
\pstThreeDEllipse[linecolor=red](0,0,0)(0,4,0)(4,0,0)
\pstThreeDEllipse[linecolor=red](0,0,0)(0,4,0)(0,0,4)
%
\pscustom[fillstyle=solid,fillcolor=blue,linestyle=none]{
\pstThreeDEllipse[beginAngle=90,endAngle=0](0,0,0)(4,0,0)(0,4,0)
\pstThreeDEllipse[beginAngle=0,endAngle=90](0,0,0)(4,0,0)(0,0,4)
\pstThreeDEllipse[beginAngle=90,endAngle=0](0,0,0)(0,4,0)(0,0,4)
}
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list