#include <triangulatedSurface.h>
Inheritance diagram for TriangulatedSurface:
Public Types | |
Type definitions | |
typedef std::list< TrianglePoint * >::iterator | PointIterator |
typedef std::list< TrianglePoint * >::const_iterator | ConstPointIterator |
typedef std::list< TriangleEdge * >::iterator | EdgeIterator |
typedef std::list< TriangleEdge * >::const_iterator | ConstEdgeIterator |
typedef std::list< Triangle * >::iterator | TriangleIterator |
typedef std::list< Triangle * >::const_iterator | ConstTriangleIterator |
Public Member Functions | |
Constructors and Destructors | |
TriangulatedSurface () throw () | |
Default constructor. | |
TriangulatedSurface (const TriangulatedSurface &surface, bool=true) throw () | |
Copy constructor. | |
virtual | ~TriangulatedSurface () throw () |
Destructor. | |
Assignment | |
void | clear () throw () |
Delete all points, edges and triangles. | |
void | set (const TriangulatedSurface &surface, bool=true) throw () |
Assign from another TriangulatedSurface. | |
TriangulatedSurface & | operator= (const TriangulatedSurface &surface) throw () |
Assign from another TriangulatedSurface. | |
Accessors | |
void | insert (TrianglePoint *point) throw () |
Insert a new point to the TriangulatedSurface. | |
void | insert (TriangleEdge *edge) throw () |
Insert a new edge to the TriangulatedSurface. | |
void | insert (Triangle *triangle) throw () |
Insert a new triangle to the TriangulatedSurface. | |
Size | numberOfPoints () const throw () |
Get the number of points of the TriangulatedSurface. | |
Size | numberOfEdges () const throw () |
Get the number of edges of the TriangulatedSurface. | |
Size | numberOfTriangles () const throw () |
Get the number of triangles of the TriangulatedSurface. | |
void | remove (TrianglePoint *point, bool deep=true) throw () |
Remove a point from the TriangulatedSurface. | |
void | remove (PointIterator p, bool deep=true) throw () |
Remove a point from the TriangulatedSurface. | |
void | remove (TriangleEdge *edge, bool deep=true) throw () |
Remove an edge from the TriangulatedSurface. | |
void | remove (EdgeIterator e, bool deep=true) throw () |
Remove an edge from the TriangulatedSurface. | |
void | remove (Triangle *triangle, bool deep=true) throw () |
Remove a triangle from the TriangulatedSurface. | |
void | remove (TriangleIterator t, bool deep=true) throw () |
Remove a triangle from the TriangulatedSurface. | |
void | exportSurface (Surface &surface) throw () |
Create a Surface object from the TriangulatedeSurface. | |
TriangulatedSurface & | operator+= (const TriangulatedSurface &surface) throw () |
Add a TriangulatedSurface object. | |
void | join (TriangulatedSurface &source) throw () |
Add a TriangulatedSurface object. | |
void | shift (const TVector3< double > &c) |
Shift the TriangulatedSurface. | |
void | blowUp (const double &r) |
Blow up th TriangulatedSurface. | |
void | setIndices () |
Set the indices of al points, edges and triangles. | |
void | cut (const TPlane3< double > &plane, const double &fuzzy=0) |
Cut the TriangulatedSurface on a plane. | |
void | shrink () |
Delete all triangles on the border of the TriangulatedSurface. | |
void | deleteIsolatedEdges () throw () |
Delete all isolated edges of the TriangulatedSurface. | |
void | deleteIsolatedPoints () throw () |
Delete all isolated points of the TriangulatedSurface. | |
void | getBorder (std::list< TriangleEdge * > &border) |
Get the border edges of the TriangulatedSurface. | |
External Iterators | |
PointIterator | beginPoint () throw () |
ConstPointIterator | beginPoint () const throw () |
PointIterator | endPoint () throw () |
ConstPointIterator | endPoint () const throw () |
EdgeIterator | beginEdge () throw () |
ConstEdgeIterator | beginEdge () const throw () |
EdgeIterator | endEdge () throw () |
ConstEdgeIterator | endEdge () const throw () |
TriangleIterator | beginTriangle () throw () |
ConstTriangleIterator | beginTriangle () const throw () |
TriangleIterator | endTriangle () throw () |
ConstTriangleIterator | endTriangle () const throw () |
Protected Member Functions | |
bool | canBeCopied () const throw () |
void | copy (const TriangulatedSurface &surface) throw () |
Protected Attributes | |
Size | number_of_points_ |
std::list< TrianglePoint * > | points_ |
Size | number_of_edges_ |
std::list< TriangleEdge * > | edges_ |
Size | number_of_triangles_ |
std::list< Triangle * > | triangles_ |
|
Default constructor. This method creates a new TriangulatedSurface object. |
|
Copy constructor. Create a new TriangulatedSurface object from another.
|
|
Destructor. Destructs the TriangulatedSurface object. |
|
Blow up th TriangulatedSurface. All points are multiplied by a scalar r.
|
|
Delete all points, edges and triangles.
|
|
Cut the TriangulatedSurface on a plane.
|
|
Create a Surface object from the TriangulatedeSurface.
|
|
Get the border edges of the TriangulatedSurface. Border edges are the edges with only one triangle.
|
|
Insert a new triangle to the TriangulatedSurface.
|
|
Insert a new edge to the TriangulatedSurface.
|
|
Insert a new point to the TriangulatedSurface.
|
|
Add a TriangulatedSurface object. The lists of points, edges and triangles of the given TriangulatedSurface objact are appended. After this operation, the given TriangulatedSurface objact will be empty!
|
|
Get the number of edges of the TriangulatedSurface.
|
|
Get the number of points of the TriangulatedSurface.
|
|
Get the number of triangles of the TriangulatedSurface.
|
|
Add a TriangulatedSurface object. The lists of points, edges and triangles of the given TriangulatedSurface objact are appended. The given TriangulatedSurface objact will be unchanged.
|
|
Assign from another TriangulatedSurface.
|
|
Remove a triangle from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
|
|
Remove a triangle from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
|
|
Remove an edge from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
|
|
Remove an edge from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
|
|
Remove a point from the TriangulatedSurface. If deep is true (default) the incidence-structure will be updated.
|
|
Remove a point from the TriangulatedSurface. If deep is true (default) the incidence-structure will be updated.
|
|
Assign from another TriangulatedSurface.
|
|
Set the indices of al points, edges and triangles.
|
|
Shift the TriangulatedSurface. All points are shifted by a vector c.
|