[pstricks] can planes be fused with \pSolid surfaces? a desperate plea

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Mon Aug 2 18:52:02 CEST 2010


Thanks---'ll try it.

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

On Aug 2, 2010, at 12:35, Jean-Paul Vignault wrote:

> Here is better : just add "newplan" after your plane in fusion object.
> 
> In fact, in solides.pro you have 2 types of object : type solid (edges
> + faces + colors and so on) and type "plan" (range + origine + grid +
> ...). When you want to draw a plan type object, you need to transform
> it on solid type. This is automatic with \psSolid[object=plan], but I
> forgot the fusion case.
> 
> The command "newplan" make the conversion plantype --> solidtype
> 
> Jean-Paul
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % !TEX TS-program = latex
> \listfiles
> \documentclass[11pt]{article}
> \usepackage{pst-solides3d}
> \begin{document}
> 
> %\axesIIID(4,4,2)(5,5,6)
> \begin{pspicture}(-0.5,-3.5)(3,3.5)
> \psset{lightsrc=50 40 30, viewpoint=15 30 50 rtp2xyz,Decran=50}
> \psset{solidmemory}
> \defFunction[algebraic]{SurfFunction}(x,y){}{} { (x^2-3*y^2)/2 }
> \psSolid[object=surface,
>  fillcolor=lightgray,
>  incolor=green,
>  ngrid=0.1 0.1,
>  base=0 1.5 0 1.0,
>  function=SurfFunction,
>  action=none,
>  name=graphsurf,
> ]
> %
> \psSolid[object=plan,
>  definition=normalpoint,
>  args={1.0 0.5 0.125 [-1.0 1.5 1]},
>  fillcolor=red!50,
> %  opacity=0.4,
>  base=-0.75 0.75 -0.5 0.5,
>  action=draw**,
>  ngrid=0.2 0.2,
>  showbase,
>  name=tanplane,
> ]
> \psSolid[object=fusion,
>  base={graphsurf tanplane newplan},
>  action=draw**]
> \end{pspicture}
> 
> 
> \end{document}
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/

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


More information about the PSTricks mailing list