An efficient mesh representation that features Quadratic Error function simplification using a Multiple-Choice Algorithm.
More...
#include <FastQuadrics.h>
|
| void | allocate (int vertCount, int faceCount) |
| | Allocates memory for the vertex and face arrays. More...
|
| |
|
void | release () |
| | Releases memory held by this mesh.
|
| |
|
void | resize () |
| | Allows one to resize the container to hold vertexCount verts and faceCount faces.
|
| |
|
void | swap (CFastQuadrics &mesh) |
| | Swaps one CFastQuadrics with another.
|
| |
|
void | copy (CFastQuadrics &mesh) |
| | Copies the mesh parameter to the mesh.
|
| |
|
void | append (CFastQuadrics &mesh) |
| | Appends the mesh parameter to the mesh.
|
| |
| 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. More...
|
| |
| void | addFace (int vid0, int vid1, int vid2, int material) |
| | Adds a triangle to the mesh. More...
|
| |
An efficient mesh representation that features Quadratic Error function simplification using a Multiple-Choice Algorithm.
Definition at line 44 of file FastQuadrics.h.
| void VoxelFarm::CFastQuadrics::addFace |
( |
int |
vid0, |
|
|
int |
vid1, |
|
|
int |
vid2, |
|
|
int |
material |
|
) |
| |
Adds a triangle to the mesh.
- Parameters
-
| vid0 | Index for the first vertex in the triangle |
| vid1 | Index for the second vertex in the triangle |
| vid2 | Index for the third vertex in the triangle |
| material | A m aterial indentifier. Can be chosen by the application. |
| int VoxelFarm::CFastQuadrics::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.
- Parameters
-
| x | X coordinate for the new vertex |
| y | Y coordinate for the new vertex |
| z | Z coordinate for the new vertex |
| type | A type holder for the vertex. Can be chosen by the application. |
| maxerror | Maximum simplification error the vertex will allow |
| external | An external application-specific buffer |
| flags | The vertex flags determined during contouring |
| void VoxelFarm::CFastQuadrics::allocate |
( |
int |
vertCount, |
|
|
int |
faceCount |
|
) |
| |
Allocates memory for the vertex and face arrays.
- Parameters
-
| vertCount | Number of vertices to be allocated |
| faceCount | Number of faces to be allocated |
The documentation for this class was generated from the following file: