63 int&
index(
unsigned i);
65 int index(
unsigned i)
const;
All base classes related to 3D manipulation.
OPoint3D _A
First OPoint3D.
double getSurface()
Compute the triangle surface.
bool operator==(const OTriangle &other) const
static int OTriangle::* indices_m_ptr[3]
int _p1
Index of the first OPoint3D _A.
int _p3
Index of the third OPoint3D _C.
std::string reportInconsistencyWrtPointsTab(const std::deque< OPoint3D > &points)
If inconsistency found between indexes and OPoint3D points, prints it.
bool checkConsistencyWrtPointsTab(const std::deque< OPoint3D > &points) const
Check the consistency between indexes of points and the points of this OTriangle.
OPoint3D getCentre()
Gives back the triangle center.
OTriangle(int p1, int p2, int p3)
Constructor b.
OPoint3D _C
Third OPoint3D.
OPoint3D _B
Second OPoint3D.
static OPoint3D OTriangle::* vertices_m_ptr[3]
< A static table of OPoint3D.
int _p2
Index of the second OPoint3D _B.
OPoint3D & vertex(unsigned i)
Get the OPoint3D from the specific index.
::std::ostream & operator<<(::std::ostream &os, const OTriangle &)