28.06.2014 Views

GAViewer 0.43 manual (.pdf)

GAViewer 0.43 manual (.pdf)

GAViewer 0.43 manual (.pdf)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.34. PLAY (.GPL FILES ONLY) 25<br />

3.33.2 meshnormal<br />

meshnormal allows you to specify the surface normal at a vertex. The syntax<br />

of meshnormal is:<br />

meshnormal "mesh name" index vector<br />

The mesh name refers to the mesh name given earlier in a mesh keyword.<br />

index is the positive index of the vertex in the list of vertices. point can be the<br />

name of an existing object with a vector interpretation, or the 3D coordinates<br />

of the vector (not a bivector.... :) between square brackets. Usage example:<br />

meshnormal teapot 0 [1.0e1 + 1.0*e3]<br />

3.33.3 meshface<br />

meshface specifies a face of a mesh. It can have an arbitrary (current max 16)<br />

number of vertices. Vertices should be listed in counter clockwise order, when<br />

viewed from the front side. The syntax is:<br />

meshface "mesh name" vertex_idx1 vertex_idx2 ... vertex_idxN<br />

Usage example:<br />

meshface teapot 295 327 328<br />

3.33.4 Full usage example for mesh<br />

This example should draw a cube (you may have to zoom out to see it, if these<br />

are the only commands in a .geo file. Usage example:<br />

mesh cube compute_normals_flat<br />

meshvertex cube 0 [1.0*e1+-1.0*e2+1.0*e3]<br />

meshvertex cube 1 [1.0*e1+-1.0*e2+-1.0*e3]<br />

meshvertex cube 2 [-1.0*e1+-1.0*e2+-1.0*e3]<br />

meshvertex cube 3 [-1.0*e1+-1.0*e2+1.0*e3]<br />

meshvertex cube 4 [1.0*e1+1.0*e2+1.0*e3]<br />

meshvertex cube 5 [1.0*e1+1.0*e2+-1.0*e3]<br />

meshvertex cube 6 [-1.0*e1+1.0*e2+-1.0*e3]<br />

meshvertex cube 7 [-1.0*e1+1.0*e2+1.0*e3]<br />

meshface cube 3 2 1 0<br />

meshface cube 0 1 5 4<br />

meshface cube 0 4 7 3<br />

meshface cube 5 1 2 6<br />

meshface cube 6 2 3 7<br />

meshface cube 4 5 6 7<br />

3.34 play (.gpl files only)<br />

.gpl files are very special .geo files that can contain only one type of keyword:<br />

play. The syntax of play is:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!