|
AGX Dynamics
2.37.3.2
|
Triangle data for a normal or a clipped triangle. More...
#include <WindAndWaterUtils.h>
Inheritance diagram for agxModel::TriangleData:Public Types | |
| typedef agx::VectorPOD< TriangleData > | Container |
| enum | State { BELOW_SURFACE = 1 << 0, ABOVE_SURFACE = 1 << 1, CLIPPED = 1 << 2, CALCULATIONS_ENABLE = 1 << 3 } |
Public Member Functions | |
| agx::Real | calculateArea () const |
| agx::Vec3 | calculateNormal () const |
| const agxModel::VertexData & | getVertex (size_t i) const |
| There are three vertices in this triangle. More... | |
| agx::Bool | isBelowSurface () const |
| agx::Bool | isCalculationsEnable () const |
| agx::Bool | isClipped () const |
Public Attributes | |
| agx::Real | area |
| Area of this triangle. More... | |
| agx::Int32 | state |
| Current state of this triangle. More... | |
| agxModel::VertexData | vertices [3] |
| Vertices of this triangle. More... | |
| agx::Vec3 | worldNormal |
| Normal to this triangle given in world coordinate system. More... | |
Triangle data for a normal or a clipped triangle.
Definition at line 60 of file WindAndWaterUtils.h.
Definition at line 62 of file WindAndWaterUtils.h.
| Enumerator | |
|---|---|
| BELOW_SURFACE | |
| ABOVE_SURFACE | |
| CLIPPED | |
| CALCULATIONS_ENABLE | |
Definition at line 64 of file WindAndWaterUtils.h.
| agx::Real agxModel::TriangleData::calculateArea | ( | ) | const |
| agx::Vec3 agxModel::TriangleData::calculateNormal | ( | ) | const |
|
inline |
There are three vertices in this triangle.
| i | - vertex index [0, 1, 2] |
i Definition at line 163 of file WindAndWaterUtils.h.
| agx::Bool agxModel::TriangleData::isBelowSurface | ( | ) | const |
Definition at line 148 of file WindAndWaterUtils.h.
| agx::Bool agxModel::TriangleData::isCalculationsEnable | ( | ) | const |
Definition at line 158 of file WindAndWaterUtils.h.
| agx::Bool agxModel::TriangleData::isClipped | ( | ) | const |
Definition at line 153 of file WindAndWaterUtils.h.
Referenced by agxModel::triangleIterator().
| agx::Real agxModel::TriangleData::area |
Area of this triangle.
Definition at line 109 of file WindAndWaterUtils.h.
| agx::Int32 agxModel::TriangleData::state |
Current state of this triangle.
Definition at line 110 of file WindAndWaterUtils.h.
| agxModel::VertexData agxModel::TriangleData::vertices[3] |
Vertices of this triangle.
Definition at line 106 of file WindAndWaterUtils.h.
| agx::Vec3 agxModel::TriangleData::worldNormal |
Normal to this triangle given in world coordinate system.
Definition at line 108 of file WindAndWaterUtils.h.