http://surf.sourceforge.net
) to draw 3D surfaces or 3D curves from their
implicit equations (that is drawing the set of points (x,y,z) such
that f(x,y,z) = 0). glsurf file
to execute all the commands or to drag and drop this file on the glsurf executable.make opt
(or make
if your platform
does not support ocamlopt) and make install
. The name of the
program is glsurf
.libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40014000) libpng.so.3 => /usr/lib/libpng.so.3 (0x40032000) libz.so.1 => /lib/libz.so.1 (0x40057000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40065000) libungif.so.4 => /usr/lib/libungif.so.4 (0x40087000) libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x40090000) libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x400bd000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40156000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40164000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4017a000) libglut.so.3 => /usr/X11R6/lib/libglut.so.3 (0x4025a000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40291000) libm.so.6 => /lib/i686/libm.so.6 (0x402e1000) libdl.so.2 => /lib/libdl.so.2 (0x40303000) libc.so.6 => /lib/i686/libc.so.6 (0x40306000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40439000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40443000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40495000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4049e000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x404b5000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
let x = 2 * pi;There are predefined identifiers: pi, true, false, fastest, nicest, dont_care, off.
let f(x,y,z) = x^2 + y^2 + z^2 - sin(x*y*z);note: the only predefined functions are exp, log, sin, cos, sqrt. Other functions may be added in future version is someone asks for them !
vertices x1,y1,z1 x2,y2,z2 ... |
triangles a1,b1,c1 a2,b2,c2 ... |
line a1,a2,... |
points a1,a2,... |
examples/Other/cube
):
object cube = vertices 0, 0, 0 0, 0, 1 0, 1, 0 0, 1, 1 1, 0, 0 1, 0, 1 1, 1, 0 1, 1, 1 triangles 0, 2, 1 1, 2, 3 4, 5, 6 5, 7, 6 0, 1, 4 1, 5, 4 2, 6, 3 3, 6, 7 0, 4, 2 2, 4, 6 1, 3, 5 3, 7, 5 line 0,1,3,2,0 line 4,5,7,6,4 line 0,4 line 1,5 line 2,6 line 3,7 points 0,1,2,3,4,5,6,7;
minsize reached
'' is not printed), then the worst quality should be smaller that
3 × 21 + max_division_difffile_format
, file_prefix
, pov_line_texture
, pov_point_texture
, pov_surface_texture
and pov_preambule
."this is a \"string\""
.let pt1(x,y,z) = z - 1; let pt2(x,y,z) = -1*cy*y + cz*z + 1; let pt3(x,y,z) = sin(2*pi/3)*cy*x -cos(2*pi/3)*cy*y + cz*z + 1; let pt4(x,y,z) = sin(4*pi/3)*cy*x -cos(4*pi/3)*cy*y + cz*z + 1; let q0(x,y,z) = pt1(x,y,z)*pt2(x,y,z)*pt3(x,y,z)*pt4(x,y,z);There are seven predefined identifiers: pi, true, false, fastest, nicest, dont_care, off and five functions: exp, log, sin, cos, sqrt. Other functions may be added in future version if someone asks for them !
"png"
) the format used to save images
(see the binding of the ``s'' and ``r'' keys).
"image"
) the prefix used to generate file
names when saving images (see the binding of the ``s'' key and ``r'' keys).
""
) A preambule
added to any POVRay file generated. (a default preambule is build from
the OpenGL parameters if the value is ""
). See section 12
about the POVRay interface.""
) the
texture applied to curves and lines when using POVRay (a texture is build from
the OpenGL parameters if the value is ""
). See section 12
about the POVRay interface. ""
) the
texture applied to points when using POVRay (a default texture is build from
the OpenGL parameters if the value is ""
). See section 12
about the POVRay interface.
""
) the
texture applied to surfaces and triangles when using POVRay (a default
texture is build from
the OpenGL parameters if the value is ""
). See section 12
about the POVRay interface.
povray
command is in the PATH, GlSurf calls
POVRay on this file to produce an image file named ``xxxd.png''.\inputf
This document was translated from LATEX by HEVEA.