[pstricks] can planes be fused with \pSolid surfaces? a desperate plea
Jean-Paul Vignault
jp.vignault at gmail.com
Mon Aug 2 15:44:48 CEST 2010
Hi,
Sorry for my late response. It seems there is a bug in solides.pro,
and the object "plane" is not a solid type.
Waiting the bug is fixed, you can try something with code jps. For
example :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% !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,
]
\codejps {
/TEST tanplane newplan def %% now, TEST is from solid type
}
\psSolid[object=fusion,
base={graphsurf TEST},
action=draw**]
\end{pspicture}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hope this help,
Jean-Paul
More information about the PSTricks
mailing list