[pstricks] can planes be fused with \pSolid surfaces? a desperate plea
Jean-Paul Vignault
jp.vignault at gmail.com
Mon Aug 2 18:35:46 CEST 2010
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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the PSTricks
mailing list