OpenSceneGraph  3.5.1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::EdgeCollector Class Reference

Classes

struct  Edge
 
struct  Edgeloop
 
struct  Point
 
struct  Triangle
 

Public Types

typedef std::list< osg::ref_ptr< osg::UIntArray > > IndexArrayList
 
typedef std::set< osg::ref_ptr< Edge >, dereference_lessEdgeSet
 
typedef std::vector< osg::ref_ptr< Edge > > EdgeList
 
typedef std::list< osg::ref_ptr< Edgeloop > > EdgeloopList
 
typedef std::set< osg::ref_ptr< Point >, dereference_lessPointSet
 
typedef std::vector< osg::ref_ptr< Point > > PointList
 
typedef std::list< osg::ref_ptr< Triangle > > TriangleList
 
typedef std::set< osg::ref_ptr< Triangle > > TriangleSet
 
typedef std::map< osg::ref_ptr< Triangle >, unsigned int, dereference_lessTriangleMap
 

Public Member Functions

 ~EdgeCollector ()
 
void setGeometry (osg::Geometry *geometry)
 
osg::GeometrygetGeometry ()
 
unsigned int getNumOfTriangles ()
 
TriangleaddTriangle (unsigned int p1, unsigned int p2, unsigned int p3)
 
TriangleaddTriangle (Point *p1, Point *p2, Point *p3)
 
EdgeaddEdge (Triangle *triangle, Point *p1, Point *p2)
 
PointaddPoint (Triangle *triangle, unsigned int p1)
 
PointaddPoint (Triangle *triangle, Point *point)
 
void getBoundaryEdgeList (EdgeList &el)
 
bool extractBoundaryEdgeloop (EdgeList &el, Edgeloop &edgeloop)
 
bool extractBoundaryEdgeloopList (EdgeList &el, EdgeloopList &edgeloopList)
 
void getEdgeloopIndexList (IndexArrayList &ial)
 

Public Attributes

osg::Geometry_geometry
 
EdgeSet _edgeSet
 
TriangleSet _triangleSet
 
PointSet _pointSet
 
PointList _originalPointList
 

Member Typedef Documentation

Constructor & Destructor Documentation

osgUtil::EdgeCollector::~EdgeCollector ( )

Member Function Documentation

Edge* osgUtil::EdgeCollector::addEdge ( Triangle triangle,
Point p1,
Point p2 
)
Point* osgUtil::EdgeCollector::addPoint ( Triangle triangle,
unsigned int  p1 
)
inline
Point* osgUtil::EdgeCollector::addPoint ( Triangle triangle,
Point point 
)
Triangle* osgUtil::EdgeCollector::addTriangle ( unsigned int  p1,
unsigned int  p2,
unsigned int  p3 
)
Triangle* osgUtil::EdgeCollector::addTriangle ( Point p1,
Point p2,
Point p3 
)
bool osgUtil::EdgeCollector::extractBoundaryEdgeloop ( EdgeList el,
Edgeloop edgeloop 
)
bool osgUtil::EdgeCollector::extractBoundaryEdgeloopList ( EdgeList el,
EdgeloopList edgeloopList 
)
void osgUtil::EdgeCollector::getBoundaryEdgeList ( EdgeList el)
void osgUtil::EdgeCollector::getEdgeloopIndexList ( IndexArrayList ial)
osg::Geometry* osgUtil::EdgeCollector::getGeometry ( )
inline
unsigned int osgUtil::EdgeCollector::getNumOfTriangles ( )
inline
void osgUtil::EdgeCollector::setGeometry ( osg::Geometry geometry)

Member Data Documentation

EdgeSet osgUtil::EdgeCollector::_edgeSet
osg::Geometry* osgUtil::EdgeCollector::_geometry
PointList osgUtil::EdgeCollector::_originalPointList
PointSet osgUtil::EdgeCollector::_pointSet
TriangleSet osgUtil::EdgeCollector::_triangleSet

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

osg logo
Generated at Wed Nov 11 2015 22:15:14 for the OpenSceneGraph by doxygen 1.8.10.