OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Protected Member Functions
osgUtil::DelaunayTriangulator Class Reference
Inheritance diagram for osgUtil::DelaunayTriangulator:
Inheritance graph
[legend]

List of all members.

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 &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
void setInputPointArray (osg::Vec3Array *points)
 Set the input point array.
const osg::Vec3ArraygetInputPointArray () const
 Get the const input point array.
osg::Vec3ArraygetInputPointArray ()
 Get the input point array.
void setOutputNormalArray (osg::Vec3Array *normals)
 Set the output normal array (optional).
const osg::Vec3ArraygetOutputNormalArray () const
 Get the const output normal array (optional).
osg::Vec3ArraygetOutputNormalArray ()
 Get the output normal array (optional).
void addInputConstraint (DelaunayConstraint *dc)
 Add an input constraint loop.
bool triangulate ()
 Start triangulation.
const osg::DrawElementsUIntgetTriangles () const
 Get the generated primitive (call triangulate() first).
osg::DrawElementsUIntgetTriangles ()
 Get the generated primitive (call triangulate() first).
void removeInternalTriangles (DelaunayConstraint *constraint)
 remove the triangles internal to the constraint loops.

Protected Member Functions

virtual ~DelaunayTriangulator ()
DelaunayTriangulatoroperator= (const DelaunayTriangulator &)
int getindex (const osg::Vec3 &pt, const osg::Vec3Array *points)

Member Typedef Documentation


Constructor & Destructor Documentation

virtual osgUtil::DelaunayTriangulator::~DelaunayTriangulator ( ) [protected, virtual]

Member Function Documentation

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

int osgUtil::DelaunayTriangulator::getindex ( const osg::Vec3 pt,
const osg::Vec3Array points 
) [protected]

Get the const input point array.

Get the input point array.

Get the const output normal array (optional).

Get the output normal array (optional).

Get the generated primitive (call triangulate() first).

Get the generated primitive (call triangulate() first).

DelaunayTriangulator& osgUtil::DelaunayTriangulator::operator= ( const DelaunayTriangulator ) [inline, protected]

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.


The documentation for this class was generated from the following file:

osg logo
Generated at Sat Apr 28 2012 08:53:50 for the OpenSceneGraph by doxygen 1.8.0.