class Mesh

Trivial class to represent a simple triangular mesh

Public Methods

[more]void Draw()
Simply Draw all the Triangles stored in T;
[more]void Open(char *filename)
Load a mesh from a file

Public

[more] vector<Triangle> T
All the triangles are stored in a STL vector

Documentation

Trivial class to represent a simple triangular mesh. This class will be strongly updated in the next releases to include some more sophisticated(!) features like colors normal and textures.
o vector<Triangle> T
All the triangles are stored in a STL vector.

ovoid Draw()
Simply Draw all the Triangles stored in T;

ovoid Open(char *filename)
Load a mesh from a file. The format is the so-called RAW ascii format, for each triangle just the ascii print of xyz coordinates of its vertexes. E.g. a tetrahedron is stored as:
	 1  1  1    -1 -1  1     1 -1 -1
	-1 -1  1     1  1  1    -1  1 -1
	 1 -1 -1    -1 -1  1    -1  1 -1
	-1  1 -1     1 -1 -1     1  1  1
	


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.