#include <triangle.h>
Public Member Functions |
|
Constructors and Destructors
|
|
Triangle () | |
Default constructor. |
|
Triangle (TrianglePoint *v1, TrianglePoint *v2, TrianglePoint *v3) | |
Detailed constructor. |
|
Triangle (TriangleEdge *e1, TriangleEdge *e2, TriangleEdge *e3, bool flip_normal=false) | |
Detailed constructor. |
|
Triangle (const Triangle &triangle, bool deep=false) | |
Copy constructor. |
|
virtual | ~Triangle () |
Destructor. |
|
Assignments
|
|
void | set (const Triangle &triangle, bool deep=false) |
Assign from another Triangle. |
|
Triangle & | operator= (const Triangle &triangle) |
Assign from another Triangle. |
|
Accessors
|
|
void | setPoint (Position i, TrianglePoint *point) throw (Exception::IndexOverflow) |
Set one of the three points of the
Triangle. |
|
TrianglePoint * | getPoint (Position i) const throw (Exception::IndexOverflow) |
Return one of the three points of
the Triangle. |
|
void | remove (TriangleEdge *edge) |
Remove an edge from the Triangle. |
|
Predicates
|
|
virtual bool | operator== (const Triangle &) const |
Equality operator. |
|
virtual bool | operator!= (const Triangle &) const |
Inequality operator. |
|
virtual bool | operator*= (const Triangle &) const |
Similarity operator. |
|
Friends |
|
Class friends
|
|
|
|
class | TriangleEdge |
class | TrianglePoint |
class | TriangulatedSurface |
class | TriangulatedSphere |
class | TriangulatedSES |
class | TriangulatedSAS |
class | SESTriangulator |
class | SASTriangulator |
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.
BALL::Triangle::Triangle | ( | const Triangle & | triangle, | |
bool | deep =
false |
|||
) |
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. |
virtual bool BALL::Triangle::operator!= | ( | const Triangle & | ) | const [virtual] |
Inequality operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
virtual bool BALL::Triangle::operator*= | ( | const Triangle & | ) | const [virtual] |
Similarity operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
virtual bool BALL::Triangle::operator== | ( | const Triangle & | ) | const [virtual] |
Equality operator.
Reimplemented from BALL::GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.
void BALL::Triangle::remove | ( | TriangleEdge * | edge | ) |
void BALL::Triangle::set | ( | const Triangle & | triangle, | |
bool | deep =
false |
|||
) |
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 |