[pstricks] Re : pst-solides3d and parametric surfaces

Manuel Luque mluque5130 at aol.com
Tue Jul 12 18:42:22 CEST 2011


 
 
Leon Free Wrote :

>i want to obtain the same result when the vertical plane P need not be
>parallel to one of the axis, ie P={(x,y,z) : ax+by+c=0} with a,b both
>nonzero (and (obivously) has a non empty intersection with the surface)

A first draft. Uncomment the following lines to write the files. dat

\documentclass{article}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{pst-solides3d}
\begin{document}
\begin{center}
%\codejps{
%/biface false def
%-.5 3 0.85 3.5 [0.2 0.2]
%{/y exch def
% /x exch def
% -0.35 x dup mul mul
%  y 2 sub y 1.5 sub mul sub
%  0.2 x mul y mul add
%  4.5 add }
%  true
%  newsurfaceparametree
%(Surface) writesolidfile
% }
 \begin{pspicture}(-4,-4)(7,10)
 \psset{lightsrc=viewpoint,viewpoint=100 35 30 rtp2xyz,Decran=150}
%\psset{solidmemory}
%\psSolid[object=datfile,
%   file=Surface,
%   plansepare={[0.707 0.707 0 -2.5]},
%   name=surface,
%   action=none]
%\psSolid[object=load,
%  load=surface1,
%   file=surface1,action=writesolid]
%\psSolid[object=load,
%   load=surface0,
%   file=surface0,action=writesolid]
\axesIIID(0,0,0)(5,5,7)
\psSolid[object=datfile,
         hollow,
         rm=0,
         file=surface1]
\psSolid[object=plan,
          definition=equation, args={[0.707 0.707 0 -2.5] },opacity=.5,
          plangrid,
          fillcolor=ForestGreen!20, linecolor=gray!50,base=-6 0 -6 0]
\psSolid[object=datfile,
         hollow,
         rm=0,
         intersectiontype=0,
         intersectionplan={ [0.707 0.707 0 -2.51] },intersectioncolor=(rouge),
         intersectionlinewidth=2,
         file=surface0](0,0,0)
      \end{pspicture}
\end{center}
\end{document}


ML

 

 

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110712/c04b41d5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: surfaceXplane_v02.pdf
Type: application/pdf
Size: 14341 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110712/c04b41d5/attachment-0001.pdf>


More information about the PSTricks mailing list