[pstricks] transp option

Aydin USTUN austun at selcuk.edu.tr
Tue May 23 14:18:28 CEST 2006


Hi, Everyone,

When i used the transp option in the fallowing code, the planes
generated by pstThreeDSquare command are shifted in the output. What is the problem? 

Aydin



\documentclass[12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{pst-3dplot}
\usepackage{multido}

\makeatletter
% use transpalpha=<mumber> to the the opacity level
\define at key[psset]{}{transpalpha}{\pst at checknum{#1}\pstranspalpha}
\psset{transpalpha=1}
\def\psfs at transp{%
  \addto at pscode{/Normal .setblendmode \pstranspalpha .setshapealpha }
  \psfs at solid}
\makeatother
    

\pagestyle{empty}

\begin{document}
\begin{pspicture}(-5,-5)(5,6.5)\psgrid
\pstThreeDCoor[xMin=0,yMin=0,zMin=0,xMax=7,yMax=7,zMax=7,linewidth=2pt]
\pstThreeDPlaneGrid[linewidth=.1pt,linecolor=lightgray](0,0)(7,7)
\pstThreeDPlaneGrid[planeGrid=xz,linewidth=.1pt,linecolor=lightgray](0,0)(7,7)
\pstThreeDPlaneGrid[planeGrid=yz,linewidth=.1pt,linecolor=lightgray](0,0)(7,7)

\pstThreeDSquare[linestyle=none,fillstyle=transp,transpalpha=0.5,fillcolor=magenta](0,0,6)(0,7,0)(7,0,0)
\pstThreeDSquare[linestyle=none,fillstyle=transp,transpalpha=0.5,fillcolor=green](4,0,0)(0,7,0)(0,0,7)
\pstThreeDSquare[linestyle=none,fillstyle=transp,transpalpha=0.5,fillcolor=cyan](0,5,0)(7,0,0)(0,0,7)

\pstThreeDLine[linestyle=dashed,linewidth=1pt](4,0,6)(4,5,6)
\pstThreeDLine[linestyle=dashed,linewidth=1pt](0,5,6)(4,5,6)
\pstThreeDLine[linestyle=dashed,linewidth=1pt](4,5,0)(4,5,6)
\pstThreeDDot(4,5,6)
\pstPlanePut[origin=c](4,7,0){\rotateleft{$x=$sb. düzlemi}}
\pstPlanePut[origin=c](7,5,0){\rotatedown{$y=$sb. düzlemi}}
\pstPlanePut[origin=c,plane=yz](0,7,6){$z=$sb. düzlemi}
\rput(0,-6.5){\bf Dik koordinat sistemi ($x,y,z$)}
\end{pspicture}

\end{document}

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the PSTricks mailing list