[pstricks] \psSurface in \pst3d-solides

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Thu Jul 22 19:40:16 CEST 2010


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?
The red dot indicates the point at which I want to insert decoration (like a tangent plane).  It is (1,0.5,0.125).
**************************************************************************************************************************
% !TEX TS-program = latex
\listfiles
\documentclass[11pt]{article}
\usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}
\usepackage{pst-3d}
\begin{document}
		\begin{pspicture}(-0.5,-2)(3,3)
				\psset{unit=0.5}
%%				\psset{lightsrc=50 -20 50, viewpoint=20 20 40 rtp2xyz,
%%					Decran=50}
				\psSurface[
					fillcolor=gray,
					axesboxed, 
					ngrid=0.1 0.1, 
					algebraic,
					grid,
					Zmin=-2, Zmax=2,
					]
					(0,0)(2,1)%
					{%
%					x dup mul 3 y dup mul mul sub 2 div
					(x^2-3*y^2)/2
				}
			\pstThreeDDot[linecolor=red](1,0.5,0.125)
%			\pstThreeDPut(1,0.5,0.3){\textcolor{red}{$(1,\frac{1}{2},\frac{1}{8})$}}
		\end{pspicture}
		\qquad\qquad\qquad\qquad\qquad\qquad	
		\begin{pspicture}(-0.5,-2)(3,3)
				\psset{unit=0.5}
				\psSurface[
				 fillcolor=gray,
				 axesboxed,
				 ngrid=0.1 0.1,
				 algebraic,
				 grid,% comment it out to see meaning of ngrid
				 Zmin=-2,Zmax=1
				](-1,-1)(1,1){ (x^2-3*y^2)/2 }
			\pstThreeDDot[linecolor=red](1,0.5,0.125)
		\end{pspicture}
\end{document}
*************************************************************************************************************


Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

On Jul 22, 2010, at 12:06, Herbert Voss wrote:

> Am 22.07.2010 17:36, schrieb Zbigniew Nitecki:
>> The following truly minimal code, which mimics example 7.3 in the (English) documentation for pst3d-solides,
> 
> please provide _always_ full working minimal examples
> 
> You have to set the ngrid parameter, eg ngrid=0.1 0.1
> it is internally predefined to 0, which makes no sense here.
> 
> \documentclass{article}
> \usepackage{pst-solides3d}
> 
> \begin{document}
> 
> \begin{pspicture}(-0.5,-2)(3,3)
> \psset{unit=0.5}
> \psSurface[
>  fillcolor=gray,
>  axesboxed,
>  ngrid=0.1 0.1,
>  algebraic,
>  grid,% comment it out to see meaning of ngrid
>  Zmin=-2,Zmax=1
> ](-1,-1)(1,1){ (x^2-3*y^2)/2 }
> \end{pspicture}
> 
> \end{document}
> 
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100722/c1880e4c/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst3d test 1.2.pdf
Type: application/pdf
Size: 23739 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20100722/c1880e4c/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100722/c1880e4c/attachment-0003.html>


More information about the PSTricks mailing list