[pstricks] opacity and grid lines in pst-solides3d
Jon Joseph
josco.jon at gmail.com
Sun Dec 26 05:14:29 CET 2010
All: Would it be possible to include the grid lines as part of opacity value? The following code gives the example. If you comment out the opacity=.7 line the fused solids look great with no grid lines. Turning the opacity setting back on works for everything except the now appearing grid lines. Thanks, Jon.
\documentclass{article}
\usepackage[dvipsnames]{pstricks}
\usepackage{pst-solides3d}
\usepackage{pstricks-add}
\usepackage{amssymb, amsmath}
\usepackage{multicol}
\addtolength\oddsidemargin{-20mm}
\setlength\topmargin{-20pt}
\addtolength\textheight{3cm}
\addtolength\textwidth{3cm}
\usepackage{bm}
\pagestyle{empty}
\begin{document}
\begin{pspicture}[showgrid=true](-5,0)(6,6)
\psset{lightsrc=10 -40 20,viewpoint=30 -40 20,Decran=100, solidmemory}
\psSolid[
object=anneau,
fillcolor=lightgray,
h=2,
r=1.0,
R=1.05,
ngrid=100,
action=none,
name=A1]%
\psSolid[
object=anneau,
fillcolor=blue,
h=1,
r=2.0,
R=2.1,
ngrid=100,
action=none,
name=B1]%
\psSolid[object=fusion,
action=draw**,
grid,
opacity=.7,
base=A1 B1]
\composeSolid
%\axesIIID(0,0,0)(4,4,3)
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list