#include <BALL/STRUCTURE/triangulatedSurface.h>
List of all members.
Public Types |
|
|
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 |
|
|
| TriangulatedSurface () |
| TriangulatedSurface (const TriangulatedSurface &surface, bool=true) |
virtual | ~TriangulatedSurface () |
|
|
void | clear () |
void | set (const TriangulatedSurface &surface, bool=true) |
TriangulatedSurface & | operator= (const TriangulatedSurface &surface) |
|
|
void | insert (TrianglePoint *point) |
void | insert (TriangleEdge *edge) |
void | insert (Triangle *triangle) |
BALL_DEPRECATED Size | numberOfPoints () const |
Size | getNumberOfPoints () const |
BALL_DEPRECATED Size | numberOfEdges () const |
Size | getNumberOfEdges () const |
BALL_DEPRECATED Size | numberOfTriangles () const |
Size | getNumberOfTriangles () const |
void | remove (TrianglePoint *point, bool deep=true) |
void | remove (PointIterator p, bool deep=true) |
void | remove (TriangleEdge *edge, bool deep=true) |
void | remove (EdgeIterator e, bool deep=true) |
void | remove (Triangle *triangle, bool deep=true) |
void | remove (TriangleIterator t, bool deep=true) |
void | exportSurface (Surface &surface) |
TriangulatedSurface & | operator+= (const TriangulatedSurface &surface) |
void | join (TriangulatedSurface &source) |
void | shift (const TVector3< double > &c) |
void | blowUp (const double &r) |
void | setIndices () |
void | setDensity (const double &density) |
double | getDensity () const |
void | cut (const TPlane3< double > &plane, const double &fuzzy=0) |
void | shrink () |
void | deleteIsolatedEdges () |
void | deleteIsolatedPoints () |
void | getBorder (std::list< TriangleEdge * > &border) |
Static Public Member Functions |
|
|
static TriangulatedSurface * | createTube (unsigned int num_vertices, unsigned int subdiv=0, bool closed=false, bool out=true) |
static TriangulatedSurface * | createDisk (unsigned int num_vertices, bool out=true) |
External Iterators |
|
Size | number_of_points_ |
std::list< TrianglePoint * > | points_ |
Size | number_of_edges_ |
std::list< TriangleEdge * > | edges_ |
Size | number_of_triangles_ |
std::list< Triangle * > | triangles_ |
double | density_ |
PointIterator | beginPoint () |
ConstPointIterator | beginPoint () const |
PointIterator | endPoint () |
ConstPointIterator | endPoint () const |
EdgeIterator | beginEdge () |
ConstEdgeIterator | beginEdge () const |
EdgeIterator | endEdge () |
ConstEdgeIterator | endEdge () const |
TriangleIterator | beginTriangle () |
ConstTriangleIterator | beginTriangle () const |
TriangleIterator | endTriangle () |
ConstTriangleIterator | endTriangle () const |
bool | canBeCopied () const |
void | copy (const TriangulatedSurface &surface) |
Detailed Description
Generic TriangulatedSurface Class.
Definition at line 40 of file triangulatedSurface.h.
Member Typedef Documentation
Constructor & Destructor Documentation
BALL::TriangulatedSurface::TriangulatedSurface |
( |
|
) |
|
virtual BALL::TriangulatedSurface::~TriangulatedSurface |
( |
|
) |
[virtual] |
Member Function Documentation
void BALL::TriangulatedSurface::blowUp |
( |
const double & |
r |
) |
|
bool BALL::TriangulatedSurface::canBeCopied |
( |
|
) |
const [protected] |
void BALL::TriangulatedSurface::clear |
( |
|
) |
|
Delete all points, edges and triangles.
static TriangulatedSurface* BALL::TriangulatedSurface::createDisk |
( |
unsigned int |
num_vertices, |
|
|
bool |
out = true | |
|
) |
| | [static] |
A static function that constructs a triangulated disk. The disk lies in the x-y plane and has radius 1.
- Parameters:
-
| num_vertices | The amount of vertices of which the border of the disk is composed |
| out | Controls whether the normals of the tube are pointing up or downwards. Default: true |
static TriangulatedSurface* BALL::TriangulatedSurface::createTube |
( |
unsigned int |
num_vertices, |
|
|
unsigned int |
subdiv = 0 , |
|
|
bool |
closed = false , |
|
|
bool |
out = true | |
|
) |
| | [static] |
A static function that constructs a triangulated tube. The tube is oriented along the z-axis, starts at z=0, ends at z=1 and has radius 1
- Parameters:
-
| num_vertices | The amount of vertices of which the base of the tube is composed |
| subdiv | Controls the amount of subdivisions along the z-axis. Default: 0 |
| closed | Should the tube have opend or closed ends? Default: false |
| out | Controls whether the normals of the tube are pointing in or outwards. Default: true |
void BALL::TriangulatedSurface::cut |
( |
const TPlane3< double > & |
plane, |
|
|
const double & |
fuzzy = 0 | |
|
) |
| | |
void BALL::TriangulatedSurface::deleteIsolatedEdges |
( |
|
) |
|
void BALL::TriangulatedSurface::deleteIsolatedPoints |
( |
|
) |
|
void BALL::TriangulatedSurface::exportSurface |
( |
Surface & |
surface |
) |
|
Create a Surface object from the TriangulatedeSurface.
- Parameters:
-
| surface | the created Surface object |
void BALL::TriangulatedSurface::getBorder |
( |
std::list< TriangleEdge * > & |
border |
) |
|
Get the border edges of the TriangulatedSurface. Border edges are the edges with only one triangle.
- Parameters:
-
| border | a list of the border edges |
double BALL::TriangulatedSurface::getDensity |
( |
|
) |
const |
Size BALL::TriangulatedSurface::getNumberOfEdges |
( |
|
) |
const |
Size BALL::TriangulatedSurface::getNumberOfPoints |
( |
|
) |
const |
Size BALL::TriangulatedSurface::getNumberOfTriangles |
( |
|
) |
const |
void BALL::TriangulatedSurface::insert |
( |
Triangle * |
triangle |
) |
|
Insert a new triangle to the TriangulatedSurface.
- Parameters:
-
| triangle | a pointer to the new triangle |
void BALL::TriangulatedSurface::insert |
( |
TriangleEdge * |
edge |
) |
|
BALL_DEPRECATED Size BALL::TriangulatedSurface::numberOfEdges |
( |
|
) |
const |
BALL_DEPRECATED Size BALL::TriangulatedSurface::numberOfPoints |
( |
|
) |
const |
BALL_DEPRECATED Size BALL::TriangulatedSurface::numberOfTriangles |
( |
|
) |
const |
Remove a triangle from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
- Parameters:
-
| t | an iterator into the list of triangles of the TriangulatedSurface which indicates the triangle to delete |
| deep | look above |
void BALL::TriangulatedSurface::remove |
( |
Triangle * |
triangle, |
|
|
bool |
deep = true | |
|
) |
| | |
Remove a triangle from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
- Parameters:
-
| triangle | a pointer to the triangle to delete |
| deep | look above |
Remove an edge from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
- Parameters:
-
| e | an iterator into the list of edges of the TriangulatedSurface which indicates the edge to delete |
| deep | look above |
void BALL::TriangulatedSurface::remove |
( |
TriangleEdge * |
edge, |
|
|
bool |
deep = true | |
|
) |
| | |
Remove an edge from the TriangulatedSurface. If deep is true (not default) the incidence-structure will be updated.
- Parameters:
-
| edge | a pointer to the edge to delete |
| deep | look above |
Remove a point from the TriangulatedSurface. If deep is true (default) the incidence-structure will be updated.
- Parameters:
-
| p | an iterator into the list of points of the TriangulatedSurface which indicates the point to delete |
| deep | look above |
Remove a point from the TriangulatedSurface. If deep is true (default) the incidence-structure will be updated.
- Parameters:
-
| point | a pointer to the point to delete |
| deep | look above |
void BALL::TriangulatedSurface::setDensity |
( |
const double & |
density |
) |
|
void BALL::TriangulatedSurface::setIndices |
( |
|
) |
|
Set the indices of all points, edges and triangles.
void BALL::TriangulatedSurface::shift |
( |
const TVector3< double > & |
c |
) |
|
void BALL::TriangulatedSurface::shrink |
( |
|
) |
|
Member Data Documentation