Inheritance diagram for osgUtil::DelaunayTriangulator:
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. | |
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). | |
Protected Member Functions | |
virtual | ~DelaunayTriangulator () |
DelaunayTriangulator & | operator= (const DelaunayTriangulator &) |
Just create a DelaunayTriangulator, assign it the sample point array and call its triangulate() method to start the triangulation. Then you can obtain the generated primitive by calling the getTriangles() method.
|
|
|
|
|
|
|
|
|
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).
|
|
|
|
Set the input point array.
|
|
Set the output normal array (optional).
|
|
Start triangulation.
|