Utility class that triangulates an irregolar network of sample points.
Inheritance:
Public Methods
-
DelaunayTriangulator()
-
explicit DelaunayTriangulator(osg::Vec3Array* points, osg::Vec3Array* normals = 0)
-
DelaunayTriangulator(const DelaunayTriangulator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
-
bool triangulate()
- Start triangulation
-
inline const osg::Vec3Array* getInputPointArray() const
- Get the const input point array
-
inline osg::Vec3Array* getInputPointArray()
- Get the input point array
-
inline void setInputPointArray(osg::Vec3Array* points)
- Set the input point array
-
inline const osg::Vec3Array* getOutputNormalArray() const
- Get the const output normal array (optional)
-
inline osg::Vec3Array* getOutputNormalArray()
- Get the output normal array (optional)
-
inline void setOutputNormalArray(osg::Vec3Array* normals)
- Set the output normal array (optional)
-
inline const osg::DrawElementsUInt* getTriangles() const
- Get the generated primitive (call triangulate() first)
-
inline osg::DrawElementsUInt* getTriangles()
- Get the generated primitive (call triangulate() first)
Protected Methods
-
virtual ~DelaunayTriangulator()
-
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.
- DelaunayTriangulator()
- explicit DelaunayTriangulator(osg::Vec3Array* points, osg::Vec3Array* normals = 0)
- DelaunayTriangulator(const DelaunayTriangulator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
- bool triangulate()
- Start triangulation
- virtual ~DelaunayTriangulator()
- DelaunayTriangulator& operator=(const DelaunayTriangulator &)
- inline const osg::Vec3Array* getInputPointArray() const
- Get the const input point array
- inline osg::Vec3Array* getInputPointArray()
- Get the input point array
- inline void setInputPointArray(osg::Vec3Array* points)
- Set the input point array
- inline const osg::Vec3Array* getOutputNormalArray() const
- Get the const output normal array (optional)
- inline osg::Vec3Array* getOutputNormalArray()
- Get the output normal array (optional)
- inline void setOutputNormalArray(osg::Vec3Array* normals)
- Set the output normal array (optional)
- inline const osg::DrawElementsUInt* getTriangles() const
- Get the generated primitive (call triangulate() first)
- inline 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++.