Public Types | |
typedef std::vector< osg::ref_ptr< DelaunayConstraint > > | linelist |
Public Member Functions | |
DelaunayTriangulator () | |
DelaunayTriangulator (osg::Vec3Array *points, osg::Vec3Array *normals=0) | |
DelaunayTriangulator (const DelaunayTriangulator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
const osg::Vec3Array * | getInputPointArray () const |
Get the const input point array. | |
osg::Vec3Array * | getInputPointArray () |
Get the input point array. | |
void | setInputPointArray (osg::Vec3Array *points) |
Set the input point array. | |
void | addInputConstraint (DelaunayConstraint *dc) |
Add an input constraint loop. | |
const osg::Vec3Array * | getOutputNormalArray () const |
Get the const output normal array (optional). | |
osg::Vec3Array * | getOutputNormalArray () |
Get the output normal array (optional). | |
void | setOutputNormalArray (osg::Vec3Array *normals) |
Set the output normal array (optional). | |
bool | triangulate () |
Start triangulation. | |
const osg::DrawElementsUInt * | getTriangles () const |
Get the generated primitive (call triangulate() first). | |
osg::DrawElementsUInt * | getTriangles () |
Get the generated primitive (call triangulate() first). | |
void | removeInternalTriangles (DelaunayConstraint *constraint) |
remove the triangles internal to the constraint loops. | |
Protected Member Functions | |
virtual | ~DelaunayTriangulator () |
DelaunayTriangulator & | operator= (const DelaunayTriangulator &) |
int | getindex (const osg::Vec3 pt, const osg::Vec3Array *points) |
|
|
|
|
|
|
|
|
|
|
|
Add an input constraint loop. the edges of the loop will constrain the triangulation. if remove!=0, the internal triangles of the constraint will be removed; the user may the replace the constraint line with an equivalent geometry. GWM July 2005 |
|
|
|
Get the input point array.
|
|
Get the const input point array.
|
|
Get the output normal array (optional).
|
|
Get the const output normal array (optional).
|
|
Get the generated primitive (call triangulate() first).
|
|
Get the generated primitive (call triangulate() first).
|
|
|
|
remove the triangles internal to the constraint loops. (Line strips cannot remove any internal triangles). |
|
Set the input point array.
|
|
Set the output normal array (optional).
|
|
Start triangulation.
|