Trivial class to represent a simple triangular mesh
Trivial class to represent a simple triangular mesh.Version History
- 0.2 First Release.
- 0.2s Added Color mesh loading and drawing, smooth normals computation and resizing.
The Open function understand the type of the file from the extension.
It manages the standard ".raw" and the new "*.rawc" (mesh with per vertex color).
The loading of a "rawc" is done by the OpenColor function
vector<Triangle> T
void Draw()
void Open(char *filename)
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
bool has_color
void OpenColor(char *filename)
1 1 1 -1 -1 1 1 -1 -1 1 0 0 1 0 0 0 0 1
-1 -1 1 1 1 1 -1 1 -1 1 0 0 1 0 0 0 0 1
1 -1 -1 -1 -1 1 -1 1 -1 0 0 1 1 0 0 0 0 1
-1 1 -1 1 -1 -1 1 1 1 0 0 1 0 0 1 1 0 0
void Smooth()
void Normalize(float size=1)
Alphabetic index HTML hierarchy of classes or Java