class OSGUTIL_EXPORT osgUtil::DelaunayTriangulator

Utility class that triangulates an irregolar network of sample points.

Inheritance:


Public Methods

[more] DelaunayTriangulator()
[more]explicit DelaunayTriangulator(osg::Vec3Array* points, osg::Vec3Array* normals = 0)
[more] DelaunayTriangulator(const DelaunayTriangulator &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
[more]bool triangulate()
Start triangulation
[more]inline const osg::Vec3Array* getInputPointArray() const
Get the const input point array
[more]inline osg::Vec3Array* getInputPointArray()
Get the input point array
[more]inline void setInputPointArray(osg::Vec3Array* points)
Set the input point array
[more]inline const osg::Vec3Array* getOutputNormalArray() const
Get the const output normal array (optional)
[more]inline osg::Vec3Array* getOutputNormalArray()
Get the output normal array (optional)
[more]inline void setOutputNormalArray(osg::Vec3Array* normals)
Set the output normal array (optional)
[more]inline const osg::DrawElementsUInt* getTriangles() const
Get the generated primitive (call triangulate() first)
[more]inline osg::DrawElementsUInt* getTriangles()
Get the generated primitive (call triangulate() first)

Protected Methods

[more]virtual ~DelaunayTriangulator()
[more]DelaunayTriangulator& operator=(const DelaunayTriangulator &)


Documentation

Utility class that triangulates an irregolar network of sample points. 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.
o DelaunayTriangulator()

oexplicit DelaunayTriangulator(osg::Vec3Array* points, osg::Vec3Array* normals = 0)

o DelaunayTriangulator(const DelaunayTriangulator &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)

obool triangulate()
Start triangulation

ovirtual ~DelaunayTriangulator()

oDelaunayTriangulator& operator=(const DelaunayTriangulator &)

oinline const osg::Vec3Array* getInputPointArray() const
Get the const input point array

oinline osg::Vec3Array* getInputPointArray()
Get the input point array

oinline void setInputPointArray(osg::Vec3Array* points)
Set the input point array

oinline const osg::Vec3Array* getOutputNormalArray() const
Get the const output normal array (optional)

oinline osg::Vec3Array* getOutputNormalArray()
Get the output normal array (optional)

oinline void setOutputNormalArray(osg::Vec3Array* normals)
Set the output normal array (optional)

oinline const osg::DrawElementsUInt* getTriangles() const
Get the generated primitive (call triangulate() first)

oinline osg::DrawElementsUInt* getTriangles()
Get the generated primitive (call triangulate() first)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.