G3D::MeshBuilder Class ReferenceAllows creation of optimized watertight meshes from unoptimized polygon soups.
More...
#include <MeshBuilder.h>
List of all members.
Detailed Description
Allows creation of optimized watertight meshes from unoptimized polygon soups.
See also G3D::MeshAlg for algorithms that operate on the output.
Member Enumeration Documentation
Set setWeldRadius to AUTO_WELD to weld vertices closer than 1/2 the smallest edge length in a model.
- Enumerator:
-
Constructor & Destructor Documentation
| G3D::MeshBuilder::MeshBuilder |
( |
bool |
twoSided = false |
) |
[inline] |
Member Function Documentation
Adds two new triangles to the model.
(Counter clockwise)
| void G3D::MeshBuilder::addTriangle |
( |
const Triangle & |
t |
) |
|
Adds a new triangle to the model.
(Counter clockwise)
| void G3D::MeshBuilder::commit |
( |
std::string & |
name, |
|
|
Array< int > & |
indexArray, |
|
|
Array< Vector3 > & |
vertexArray | |
|
) |
| | |
| void G3D::MeshBuilder::setName |
( |
const std::string & |
n |
) |
|
| void G3D::MeshBuilder::setWeldRadius |
( |
double |
r |
) |
[inline] |
Vertices within this distance are considered identical.
Use AUTO_WELD (the default) to have the distance be a function of the model size.
Generated on Wed Nov 26 13:54:58 2008 for G3D by
1.5.1
Hosted by
|