[pstricks] \psSurface in \pst3d-solides

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jul 23 15:05:04 CEST 2010


Am 22.07.2010 19:40, schrieb Zbigniew Nitecki:
> Thanks for pointing out the need to define ngrid. I used grid to avoid seeing 
> the gridlines on the surface.
> Here is a complete code, which draws my version (that evaluates the function for 
> (0,2)\times(0,1))
> and then yours (evaluating the function over (-1,1)\times(-1,1). Why do I get 
> the weird ticks (can I avoid them altogether?)
> and why does my surface extend out of the box?

that is a bug. Try this workaround:

\listfiles
\documentclass[11pt]{article}
\usepackage{pst-solides3d,pst-3dplot}
\makeatletter
\def\gridIIID at ii(#1,#2)(#3,#4)[#5,#6,#7]{%
  \pst at killglue%
  \begingroup%
  \use at par%
  \psSolid[object=parallelepiped,
    intersectiontype=-1,
    a={#2 #1 sub},b={#4 #3 sub},
    c={\pst at solides@@Zmax\space \pst at solides@@Zmin\space sub},
    action=draw](#1 #2 add 2 div,#3 #4 add 2 div,\pst at solides@@Zmax
\pst at solides@@Zmin add 2 div )%
  \endgroup
}
\makeatother

\begin{document}
....
\end{document}

Herbert


More information about the PSTricks mailing list