Mesh Library - Solid
Sturcture: | Solid |
Source: | solid.c |
Definition:
struct solid{
Face *sfaces;
Edge *sedges;
Vertex *sverts;
double center[3];
}
Data Members:
- sfaces - double linked list of triangle faces
- sedges - double linked list of edges
- sverts - double linked list of vertices
Methods:
- void SolidConstructNoff( Solid ** s , char * filename);
Construct solid structure from a noff file
- void SolidDestruct( Solid ** s);
Destruct Solid structure
- void SolidConstruct( Solid ** s, char * filename);
Construct solid structure from an off file
- int SolidConvexity( Solid * s );
Check if the solid is convex or not
- void SolidCenter( Solid * s );
Calculate the center of the solid