[pstricks] intersection jaggies
Jon Joseph
josco.jon at gmail.com
Thu Jun 14 21:48:46 CEST 2012
I have three questions regarding the output from the code below:
1) Notice the jaggedness at the intersection of the plane and the hyperboloid. Is there any way to smooth this without requiring the ngrid parameter to be smaller than I have it?
2) I know that when I do a fusion parameters like linecolor are lost but incolor and fillcolor are retained (the one I really want is opacity but it is tossed as well). Is it a technical impossibility to retain these settings?
3) The \composeSolid macro does not seem to be needed. Is this true in all cases?
\documentclass[12pt]{article}
\usepackage[letterpaper,asymmetric=true, total={18cm,22cm},
top=3cm, bindingoffset=1cm]{geometry}
\usepackage[svgnames]{pstricks}
\usepackage{pst-plot,pst-infixplot}
\usepackage{pst-eucl}
\usepackage{pst-fun, pst-coil}
\usepackage{pst-solides3d}
\usepackage{pst-fun}
\usepackage{pstricks-add}
\begin{document}
\psset{unit=1cm}
\psset{viewpoint=50 40 30 rtp2xyz,Decran=50}
\psset{lightsrc=viewpoint}
\begin{pspicture}(-7,-8)(7,8)
\psset{solidmemory}
\defFunction[algebraic]{plane2}(u,v){0}{u}{v}
\defFunction[algebraic]{hyperboloid}(u,v){(1+u^2)^0.5*cos(v)}{(1+u^2)^0.5 * sin(v)}{u}
\psSolid[object=surfaceparametree, linecolor=blue!40, base=-3 3 0 6.28, fillcolor=cyan!50, incolor=green!50, function=hyperboloid, ngrid=.2 .2, intersectiontype=1, intersectionplan={[-1 0 0 0]}, intersectioncolor=(rouge), intersectionlinewidth=2, action=none, name=hyper1]
\psSolid[object=surfaceparametree, linecolor=blue!40, base=-3 3 -3 3, fillcolor=red!50, incolor=yellow!50,
function=plane2,
ngrid=.25 .25,
action=none,
name=firstplane]
\psSolid[object=fusion, base=hyper1 firstplane, intersectiontype=1, intersectionplan={[1 0 0 -.05 ]}, intersectioncolor=(bleu), intersectionlinewidth=4]
% \composeSolid
\axesIIID(0,0,0)(5,5,5)
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list