[pstricks] pst-solides3d

Poul Riis Poul.Riis at skolekom.dk
Sat Aug 21 21:57:47 CEST 2010


The project below works (almost) as expected, but I have three small
questions:

1) When ghostview begins to draw, a strange ',f23false' appears on the
sceen. Why?
2) Replacing the line
\psSolid[object=cylindre,r=rcyl,h=hcyl,ngrid=1 24,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,-4)
with
\psSolid[object=cylindre,r=rcyl,h=hcyl,ngrid=1 48,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,-4)
makes the image not-so-perfect. Is that a bug or are only divisors of 360
permitted values of the second parameter of ngrid?
3) I would like to replace
\psSolid[object=cylindre,r=rcyl,h=hcyl,ngrid=1 24,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,-4)
with something like
\psSolid[object=cylindre,r=rcyl,h=hcyl,ngrid=1 24,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](!0 0 -hcut)
This seems not to be allowed?

Poul Riis



\documentclass{article}
\parindent0pt
\pagestyle{empty}
\textwidth12cm
\usepackage[gray,cmyk]{pstricks}
\usepackage{pst-3dplot}
\usepackage{pst-func}
\usepackage{pst-solides3d}
\usepackage[x11names]{xcolor}
\usepackage{pstricks-add}
\usepackage{amsmath,amsfonts}
\definecolor{pureblack}{cmyk}{0 0 0 1}
\usepackage{siunitx}
\usepackage{comma}

\begin{document}

\begin{pspicture}[solidmemory](-4,-5)(7,4)
\psset{viewpoint=50 -40 10
rtp2xyz,Decran=50,linecolor=red,lightsrc=viewpoint}
\psset{solidmemory}
\pstVerb{/phi 30 def /cosphi phi cos def /sinphi phi sin def /nx sinphi
def /ny 0 def /nz cosphi def /rcyl 3 sqrt 4 mul def /hcut rcyl sinphi mul
cosphi div def /hcyl hcut 2 mul def}
\psSolid[object=cylindre,r=rcyl,h=hcyl,ngrid=1 24,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,-4)
\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1 0.7
}},fcol=0 (1 1 0.7 setrgbcolor)]
\end{pspicture}

\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100821/2d95c1c6/attachment.html>


More information about the PSTricks mailing list