#include <BALL/STRUCTURE/triangle.h>
|
| | Triangle () |
| | Triangle (TrianglePoint *v1, TrianglePoint *v2, TrianglePoint *v3) |
| | Triangle (TriangleEdge *e1, TriangleEdge *e2, TriangleEdge *e3, bool flip_normal=false) |
| | Triangle (const Triangle &triangle, bool deep=false) |
| virtual | ~Triangle () |
| void | set (const Triangle &triangle, bool deep=false) |
| Triangle & | operator= (const Triangle &triangle) |
| void | setPoint (Position i, TrianglePoint *point) |
| TrianglePoint * | getPoint (Position i) const |
| void | remove (TriangleEdge *edge) |
| virtual bool | operator== (const Triangle &) const |
| virtual bool | operator!= (const Triangle &) const |
| virtual bool | operator*= (const Triangle &) const |
| | GraphTriangle () |
| virtual | ~GraphTriangle () |
| void | set (const GraphTriangle< TrianglePoint, TriangleEdge, Triangle > &face, bool deep=false) |
| GraphTriangle< TrianglePoint, TriangleEdge, Triangle > & | operator= (const GraphTriangle< TrianglePoint, TriangleEdge, Triangle > &face) |
| void | setVertex (Position i, TrianglePoint *vertex) |
| TrianglePoint * | getVertex (Position i) const |
| void | setEdge (Position i, TriangleEdge *edge) |
| TriangleEdge * | getEdge (Position i) const |
| void | setIndex (Index index) |
| Index | getIndex () const |
| bool | getEdges (const TrianglePoint *vertex, TriangleEdge *&edge1, TriangleEdge *&edge2) const |
| Index | getSimilarEdge (const TriangleEdge *edge, TriangleEdge *&similar_edge) const |
| Index | getRelativeIndex (const TrianglePoint *vertex) const |
| TrianglePoint * | third (const TrianglePoint *v1, const TrianglePoint *v2) const |
| TriangleEdge * | getOppositeEdge (const TrianglePoint *vertex) const |
| TrianglePoint * | getOppositeVertex (const TriangleEdge *edge) const |
| bool | substitute (const TrianglePoint *old_vertex, TrianglePoint *new_vertex) |
| TrianglePoint * | has (TrianglePoint *vertex) const |
Generic TriangleEdge Class.
Definition at line 37 of file triangle.h.
◆ Triangle() [1/4]
| BALL::Triangle::Triangle |
( |
| ) |
|
Default constructor. This method creates a new Triangle object.
◆ Triangle() [2/4]
Detailed constructor. Creates a new Triangle object. Its vertices are initialized with the passed TrianglePoint instances.
◆ Triangle() [3/4]
Detailed constructor. Creates a new Triangle object. Its edges are initialized with the passed TriangleEdge instances. Its vertices are taken from the edges. This requires the edges to be properly oriented in a counter clockwise manner.
◆ Triangle() [4/4]
| BALL::Triangle::Triangle |
( |
const Triangle & | triangle, |
|
|
bool | deep = false ) |
Copy constructor. Create a new Triangle object from another.
- Parameters
-
| triangle | the Triangle object to be copied |
| deep | if deep = false, all pointers are set to NULL (default). Otherwise the new Triangle object is linked to the neighbours of the old Triangle object. |
◆ ~Triangle()
| virtual BALL::Triangle::~Triangle |
( |
| ) |
|
|
virtual |
Destructor. Destructs the Triangle object.
◆ getPoint()
Return one of the three points of the Triangle.
- Parameters
-
| i | the relative index of the point which should be given back. If i is greater three, an exception is thrown. |
- Returns
- TrianglePoint* a pointer to the asked point
- Exceptions
-
◆ operator!=()
| virtual bool BALL::Triangle::operator!= |
( |
const Triangle & | | ) |
const |
|
virtual |
◆ operator*=()
| virtual bool BALL::Triangle::operator*= |
( |
const Triangle & | | ) |
const |
|
virtual |
◆ operator=()
Assign from another Triangle. The Triangle object is linked to the neighbours of the Triangle object to assign from
- Parameters
-
| triangle | the Triangle object to assign from |
◆ operator==()
| virtual bool BALL::Triangle::operator== |
( |
const Triangle & | | ) |
const |
|
virtual |
◆ remove()
Remove an edge from the Triangle. The edge is set to NULL.
- Parameters
-
◆ set()
| void BALL::Triangle::set |
( |
const Triangle & | triangle, |
|
|
bool | deep = false ) |
Assign from another Triangle.
- Parameters
-
| triangle | the Triangle object to assign from |
| deep | if deep = false, all pointers are set to NULL (default). Otherwise the Triangle object is linked
to the neighbours of the Triangle object to assign
from |
◆ setPoint()
Set one of the three points of the Triangle.
- Parameters
-
| i | the relative index of the point which should be set.
If i is greater three, an exception is thrown. |
| point | a pointer to the new point |
- Exceptions
-
◆ SASTriangulator
| friend class SASTriangulator |
|
friend |
◆ SESTriangulator
| friend class SESTriangulator |
|
friend |
◆ TriangleEdge
| friend class TriangleEdge |
|
friend |
◆ TrianglePoint
| friend class TrianglePoint |
|
friend |
◆ TriangulatedSAS
| friend class TriangulatedSAS |
|
friend |
◆ TriangulatedSES
| friend class TriangulatedSES |
|
friend |
◆ TriangulatedSphere
| friend class TriangulatedSphere |
|
friend |
◆ TriangulatedSurface
| friend class TriangulatedSurface |
|
friend |