openscenegraph
Public Types | Public Member Functions | Protected Member Functions
osgUtil::DelaunayTriangulator Class Reference
Inheritance diagram for osgUtil::DelaunayTriangulator:
osg::Referenced

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)
const osg::Vec3ArraygetInputPointArray () const
osg::Vec3ArraygetInputPointArray ()
void setOutputNormalArray (osg::Vec3Array *normals)
const osg::Vec3ArraygetOutputNormalArray () const
osg::Vec3ArraygetOutputNormalArray ()
void addInputConstraint (DelaunayConstraint *dc)
bool triangulate ()
const osg::DrawElementsUIntgetTriangles () const
osg::DrawElementsUIntgetTriangles ()
void removeInternalTriangles (DelaunayConstraint *constraint)

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: