98 double maxerror = 1000000.0,
102 unsigned short flags = 0);
115 void addFaceToIndex(
FQ_Vertex& v,
int fid);
void addFace(int vid0, int vid1, int vid2, int material)
Adds a triangle to the mesh.
void swap(CFastQuadrics &mesh)
Swaps one CFastQuadrics with another.
bool deleted
Whether the vertex has been deleted.
int addVertex(double x, double y, double z, int type, double maxerror=1000000.0, int external=0, unsigned short flags=0)
Adds a vertex to the mesh.
Contains all classes and functions for the VoxelFarm engine.
FQ_Face * faces
Array of faces in the mesh.
An entry in a linked list of face adjacencies for a vertex.
void resize()
Allows one to resize the container to hold vertexCount verts and faceCount faces. ...
int next
Pointer to the next entry in the list, -1 if it is the tail.
int faceCount
Number of faces in the mesh.
unsigned short flags
Contains contouring flags to differentiate border vertices and roaming vector vertices.
int faceId
Identifier to the adjancent face.
void append(CFastQuadrics &mesh)
Appends the mesh parameter to the mesh.
CFaceLink * faceIndex
Array of all nodes in adjancency lists.
int faces
Pointer to the mesh faces adjacent to the vertex.
Specifies a vertex in a polygonal mesh.
double x
3D coordinates of the vertex
int vertexCount
Number of vertices in the mesh.
int faceLinkCount
Number of adjancency links in the mesh.
int external
An external piece of data that can be stored in the vertex.
double maxerror
Maximum error the vertex will tolerate during optimization.
An efficient mesh representation that features Quadratic Error function simplification using a Multip...
void release()
Releases memory held by this mesh.
FQ_Vertex * vertices
Array of vertices in the mesh.
int type
Vertex type. Only vertices of the same type can be collapsed during optimization. ...
bool fastBuild
Set to true to skip building adjancency lists.
void copy(CFastQuadrics &mesh)
Copies the mesh parameter to the mesh.
void allocate(int vertCount, int faceCount)
Allocates memory for the vertex and face arrays.