#include <BALL/STRUCTURE/triangulatedSurface.h>
Generic TriangulatedSurface Class.
Definition at line 40 of file triangulatedSurface.h.
◆ ConstEdgeIterator
◆ ConstPointIterator
◆ ConstTriangleIterator
◆ EdgeIterator
◆ PointIterator
◆ TriangleIterator
◆ TriangulatedSurface() [1/2]
BALL::TriangulatedSurface::TriangulatedSurface |
( |
| ) |
|
◆ TriangulatedSurface() [2/2]
◆ ~TriangulatedSurface()
virtual BALL::TriangulatedSurface::~TriangulatedSurface |
( |
| ) |
|
|
virtual |
◆ beginEdge() [1/2]
◆ beginEdge() [2/2]
◆ beginPoint() [1/2]
◆ beginPoint() [2/2]
◆ beginTriangle() [1/2]
◆ beginTriangle() [2/2]
◆ blowUp()
void BALL::TriangulatedSurface::blowUp |
( |
const double & |
r | ) |
|
◆ canBeCopied()
bool BALL::TriangulatedSurface::canBeCopied |
( |
| ) |
const |
|
protected |
◆ clear()
void BALL::TriangulatedSurface::clear |
( |
| ) |
|
Delete all points, edges and triangles.
◆ copy()
◆ createDisk()
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 |
◆ createTube()
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 |
◆ cut()
void BALL::TriangulatedSurface::cut |
( |
const TPlane3< double > & |
plane, |
|
|
const double & |
fuzzy = 0 |
|
) |
| |
◆ deleteIsolatedEdges()
void BALL::TriangulatedSurface::deleteIsolatedEdges |
( |
| ) |
|
◆ deleteIsolatedPoints()
void BALL::TriangulatedSurface::deleteIsolatedPoints |
( |
| ) |
|
◆ endEdge() [1/2]
◆ endEdge() [2/2]
◆ endPoint() [1/2]
◆ endPoint() [2/2]
◆ endTriangle() [1/2]
◆ endTriangle() [2/2]
◆ exportSurface()
void BALL::TriangulatedSurface::exportSurface |
( |
Surface & |
surface | ) |
|
Create a Surface object from the TriangulatedeSurface.
- Parameters
-
surface | the created Surface object |
◆ getBorder()
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 |
◆ getDensity()
double BALL::TriangulatedSurface::getDensity |
( |
| ) |
const |
Get the density used by triangulation algorithms.
◆ getNumberOfEdges()
Size BALL::TriangulatedSurface::getNumberOfEdges |
( |
| ) |
const |
◆ getNumberOfPoints()
Size BALL::TriangulatedSurface::getNumberOfPoints |
( |
| ) |
const |
◆ getNumberOfTriangles()
Size BALL::TriangulatedSurface::getNumberOfTriangles |
( |
| ) |
const |
◆ insert() [1/3]
◆ insert() [2/3]
void BALL::TriangulatedSurface::insert |
( |
TriangleEdge * |
edge | ) |
|
◆ insert() [3/3]
void BALL::TriangulatedSurface::insert |
( |
Triangle * |
triangle | ) |
|
Insert a new triangle to the TriangulatedSurface.
- Parameters
-
triangle | a pointer to the new triangle |
◆ join()
◆ operator+=()
◆ operator=()
◆ remove() [1/6]
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 |
◆ remove() [2/6]
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() [3/6]
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() [4/6]
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 |
◆ remove() [5/6]
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() [6/6]
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 |
◆ set()
◆ setDensity()
void BALL::TriangulatedSurface::setDensity |
( |
const double & |
density | ) |
|
Set the density used by triangulation algorithms.
◆ setIndices()
void BALL::TriangulatedSurface::setIndices |
( |
| ) |
|
Set the indices of all points, edges and triangles.
◆ shift()
◆ shrink()
void BALL::TriangulatedSurface::shrink |
( |
| ) |
|
◆ density_
double BALL::TriangulatedSurface::density_ |
|
protected |
◆ edges_
◆ number_of_edges_
Size BALL::TriangulatedSurface::number_of_edges_ |
|
protected |
◆ number_of_points_
Size BALL::TriangulatedSurface::number_of_points_ |
|
protected |
◆ number_of_triangles_
Size BALL::TriangulatedSurface::number_of_triangles_ |
|
protected |
◆ points_
◆ triangles_
std::list<Triangle*> BALL::TriangulatedSurface::triangles_ |
|
protected |