#include <BALL/STRUCTURE/triangle.h>
Public Member Functions | |
Constructors and Destructors | |
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 () |
Assignments | |
void | set (const Triangle &triangle, bool deep=false) |
Triangle & | operator= (const Triangle &triangle) |
Accessors | |
void | setPoint (Position i, TrianglePoint *point) throw (Exception::IndexOverflow) |
TrianglePoint * | getPoint (Position i) const throw (Exception::IndexOverflow) |
void | remove (TriangleEdge *edge) |
Predicates | |
virtual bool | operator== (const Triangle &) const |
virtual bool | operator!= (const Triangle &) const |
virtual bool | operator*= (const Triangle &) const |
Friends | |
Class friends | |
- class TriangleEdge
| |
class | TriangleEdge |
class | TrianglePoint |
class | TriangulatedSurface |
class | TriangulatedSphere |
class | TriangulatedSES |
class | TriangulatedSAS |
class | SESTriangulator |
class | SASTriangulator |
Generic TriangleEdge Class.
Definition at line 37 of file triangle.h.
BALL::Triangle::Triangle | ( | ) |
Default constructor. This method creates a new Triangle object.
BALL::Triangle::Triangle | ( | TrianglePoint * | v1, | |
TrianglePoint * | v2, | |||
TrianglePoint * | v3 | |||
) |
Detailed constructor. Creates a new Triangle object. Its vertices are initialized with the passed TrianglePoint instances.
BALL::Triangle::Triangle | ( | TriangleEdge * | e1, | |
TriangleEdge * | e2, | |||
TriangleEdge * | e3, | |||
bool | flip_normal = false | |||
) |
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.
virtual BALL::Triangle::~Triangle | ( | ) | [virtual] |
Destructor. Destructs the Triangle object.
TrianglePoint* BALL::Triangle::getPoint | ( | Position | i | ) | const throw (Exception::IndexOverflow) |
Return one of the three points of the Triangle.
i | the relative index of the point which should be given back. If i is greater three, an exception is thrown. |
Inequality operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
Similarity operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
Equality operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
void BALL::Triangle::remove | ( | TriangleEdge * | edge | ) |
Remove an edge from the Triangle. The edge is set to NULL.
edge | the edge to delete |
void BALL::Triangle::setPoint | ( | Position | i, | |
TrianglePoint * | point | |||
) | throw (Exception::IndexOverflow) |
Set one of the three points of the Triangle.
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 |
friend class SASTriangulator [friend] |
Definition at line 62 of file triangle.h.
friend class SESTriangulator [friend] |
Definition at line 61 of file triangle.h.
friend class TriangleEdge [friend] |
Definition at line 55 of file triangle.h.
friend class TrianglePoint [friend] |
Definition at line 56 of file triangle.h.
friend class TriangulatedSAS [friend] |
Definition at line 60 of file triangle.h.
friend class TriangulatedSES [friend] |
Definition at line 59 of file triangle.h.
friend class TriangulatedSphere [friend] |
Definition at line 58 of file triangle.h.
friend class TriangulatedSurface [friend] |
Definition at line 57 of file triangle.h.