|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <triangle.h>

Public Member Functions | |
| OTriangle (int p1, int p2, int p3) | |
| Constructor b. More... | |
| OTriangle (OPoint3D A, OPoint3D B, OPoint3D C) | |
| Constructor by 3 OPoint3D. More... | |
| ~OTriangle () | |
| Destructor. More... | |
| double | getSurface () |
| Compute the triangle surface. More... | |
| OPoint3D | getCentre () |
| Gives back the triangle center. More... | |
| OPoint3D & | vertex (unsigned i) |
Get the OPoint3D from the specific index. More... | |
| const OPoint3D & | vertex (unsigned i) const |
| Get coordinate (int) from index. More... | |
| int & | index (unsigned i) |
| int | index (unsigned i) const |
| Get coordinate (int) from index. More... | |
| bool | checkConsistencyWrtPointsTab (const std::deque< OPoint3D > &points) const |
| Check the consistency between indexes of points and the points of this OTriangle. More... | |
| std::string | reportInconsistencyWrtPointsTab (const std::deque< OPoint3D > &points) |
| If inconsistency found between indexes and OPoint3D points, prints it. More... | |
| bool | operator== (const OTriangle &other) const |
Public Attributes | |
| int | _p1 |
| Index of the first OPoint3D _A. More... | |
| int | _p2 |
| Index of the second OPoint3D _B. More... | |
| int | _p3 |
| Index of the third OPoint3D _C. More... | |
| OPoint3D | _A |
| First OPoint3D. More... | |
| OPoint3D | _B |
| Second OPoint3D. More... | |
| OPoint3D | _C |
| Third OPoint3D. More... | |
Static Private Attributes | |
| static OPoint3D OTriangle::* | vertices_m_ptr [3] = {&OTriangle::_A, &OTriangle::_B, &OTriangle::_C} |
< A static table of OPoint3D. More... | |
| static int OTriangle::* | indices_m_ptr [3] = {&OTriangle::_p1, &OTriangle::_p2, &OTriangle::_p3} |
Triangle class.
Definition at line 27 of file triangle.h.
| OTriangle::OTriangle | ( | int | p1, |
| int | p2, | ||
| int | p3 | ||
| ) |
Constructor b.
Definition at line 50 of file triangle.cpp.
Constructor by 3 OPoint3D.
Definition at line 63 of file triangle.cpp.
| OTriangle::~OTriangle | ( | ) |
Destructor.
Definition at line 85 of file triangle.cpp.
| bool OTriangle::checkConsistencyWrtPointsTab | ( | const std::deque< OPoint3D > & | points | ) | const |
Check the consistency between indexes of points and the points of this OTriangle.
Definition at line 122 of file triangle.cpp.

| OPoint3D OTriangle::getCentre | ( | ) |
Gives back the triangle center.
Definition at line 113 of file triangle.cpp.
| OTriangle::getSurface | ( | ) |
Compute the triangle surface.
Definition at line 87 of file triangle.cpp.

| int & OTriangle::index | ( | unsigned | i | ) |
| int OTriangle::index | ( | unsigned | i | ) | const |
Get coordinate (int) from index.
Definition at line 38 of file triangle.cpp.
| bool OTriangle::operator== | ( | const OTriangle & | other | ) | const |
| std::string OTriangle::reportInconsistencyWrtPointsTab | ( | const std::deque< OPoint3D > & | points | ) |
If inconsistency found between indexes and OPoint3D points, prints it.
Definition at line 128 of file triangle.cpp.

| OPoint3D & OTriangle::vertex | ( | unsigned | i | ) |
Get the OPoint3D from the specific index.
Definition at line 26 of file triangle.cpp.

| const OPoint3D & OTriangle::vertex | ( | unsigned | i | ) | const |
Get coordinate (int) from index.
Definition at line 32 of file triangle.cpp.
| OPoint3D OTriangle::_A |
First OPoint3D.
Definition at line 53 of file triangle.h.
| OPoint3D OTriangle::_B |
Second OPoint3D.
Definition at line 54 of file triangle.h.
| OPoint3D OTriangle::_C |
| int OTriangle::_p1 |
Index of the first OPoint3D _A.
Definition at line 49 of file triangle.h.
| int OTriangle::_p2 |
Index of the second OPoint3D _B.
Definition at line 50 of file triangle.h.
| int OTriangle::_p3 |
Index of the third OPoint3D _C.
Definition at line 51 of file triangle.h.
|
staticprivate |
Definition at line 78 of file triangle.h.
|
staticprivate |
< A static table of OPoint3D.
A static table of coordinate.
Definition at line 76 of file triangle.h.