|
OpenMEEG
|
Triangle Triangle class. More...
#include <triangle.h>
Public Types | |
| typedef Vertex ** | iterator |
| typedef const Vertex ** | const_iterator |
Public Member Functions | |
| Triangle () | |
| Constructors. | |
| Triangle (Vertex *pts[3], const unsigned index=-1) | |
| Create a new triangle from a set of vertices. | |
| Triangle (Vertex *p1, Vertex *p2, Vertex *p3, const unsigned index=-1) | |
| Create a new triangle from a 3 vertex adresses. | |
| Triangle (Vertex &p1, Vertex &p2, Vertex &p3, const unsigned index=-1) | |
| Create a new triangle from a 3 vertices. | |
| const_iterator | begin () const |
| Iterators. | |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
| bool | operator== (const Triangle &T) const |
| Operators. | |
| Vertex & | vertex (const unsigned &vindex) |
| const Vertex & | vertex (const unsigned &vindex) const |
| Edge | edge (const Vertex &V) const |
| Edges | edges () const |
| Normal & | normal () |
| const Normal & | normal () const |
| double | area () const |
| double & | area () |
| unsigned & | index () |
| unsigned | index () const |
| Vect3 | center () const |
| bool | contains (const Vertex &p) const |
| void | change_orientation () |
| Change triangle orientation by flipping two of the vertices. | |
| bool | intersects (const Triangle &triangle) const |
| Check for intersection with another triangle. | |
Definition at line 45 of file triangle.h.
| typedef Vertex** OpenMEEG::Triangle::iterator |
Definition at line 48 of file triangle.h.
| typedef const Vertex** OpenMEEG::Triangle::const_iterator |
Definition at line 49 of file triangle.h.
|
inline |
Constructors.
Definition at line 53 of file triangle.h.
|
inline |
Create a new triangle from a set of vertices.
Definition at line 57 of file triangle.h.
|
inline |
Create a new triangle from a 3 vertex adresses.
Definition at line 64 of file triangle.h.
|
inline |
Create a new triangle from a 3 vertices.
Definition at line 68 of file triangle.h.
|
inline |
Iterators.
Definition at line 72 of file triangle.h.
|
inline |
Definition at line 73 of file triangle.h.
|
inline |
Definition at line 74 of file triangle.h.
|
inline |
Definition at line 75 of file triangle.h.
|
inline |
Operators.
Definition at line 79 of file triangle.h.
|
inline |
Definition at line 83 of file triangle.h.
|
inline |
Definition at line 84 of file triangle.h.
Definition at line 86 of file triangle.h.
|
inline |
Definition at line 91 of file triangle.h.
|
inline |
Definition at line 95 of file triangle.h.
|
inline |
Definition at line 96 of file triangle.h.
|
inline |
Definition at line 98 of file triangle.h.
|
inline |
Definition at line 99 of file triangle.h.
|
inline |
Definition at line 101 of file triangle.h.
|
inline |
Definition at line 102 of file triangle.h.
|
inline |
Definition at line 104 of file triangle.h.
|
inline |
Definition at line 106 of file triangle.h.
|
inline |
Change triangle orientation by flipping two of the vertices.
Definition at line 115 of file triangle.h.
| bool OpenMEEG::Triangle::intersects | ( | const Triangle & | triangle | ) | const |
Check for intersection with another triangle.