17 #ifndef AGXMODEL_WINDANDWATERUTILS_H 18 #define AGXMODEL_WINDANDWATERUTILS_H 66 BELOW_SURFACE = 1 << 0,
67 ABOVE_SURFACE = 1 << 1,
69 CALCULATIONS_ENABLE = 1 << 3
135 return heightFromSurface <
agx::Real( 0 );
140 return heightFromSurface > -threshold && heightFromSurface < threshold;
145 return pressure + dynamicPressure;
150 return (state & BELOW_SURFACE) != 0;
155 return (state & CLIPPED) != 0;
160 return (state & CALCULATIONS_ENABLE) != 0;
165 return vertices[ i ];
175 #endif // AGXMODEL_WINDANDWATERUTILS_H agx::Real area
Area of this triangle.
agx::Bool isClipped() const
agx::Real dynamicPressure
Hydro- or aerostatic dynamic (drag, lift etc) pressure.
agx::Bool isCalculationsEnable() const
agx::Vec3 worldPosition
World position of this vertex.
Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices.
agx::Bool isOnSurface(agx::Real threshold=agx::REAL_SQRT_EPSILON) const
agx::Int32 state
Current state of this triangle.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
agx::Vec3 worldNormal
Normal to this triangle given in world coordinate system.
agx::Vec3 worldVelocityOfMedium
Velocity of the medium this vertex is in (water current or wind velocity).
AGXCORE_EXPORT const Real REAL_SQRT_EPSILON
agx::Vec3 worldVelocity
Velocity of this vertex given in world coordinate system.
agx::Bool isBelowSurface() const
const TriangleData & getClipped(size_t i) const
If isClipped() == true, access i'th clipped triangle (three of them).
agx::Real heightFromSurface
Height from surface, negative if below the surface.
agx::Real pressure
Hydro- or aerostatic pressure.
agxModel::TriangleData::Container clipped
Container with clipped triangles if this global triangle has been clipped.
agx::Bool isBelowSurface() const
Vertex data for all global vertices in a mesh.
const agxModel::VertexData & getVertex(size_t i) const
There are three vertices in this triangle.
Triangle data for a normal or a clipped triangle.
agx::Vector< GlobalTriangleData > Container
agx::VectorPOD< VertexData > Container
agx::VectorPOD< TriangleData > Container
agx::Real totalPressure() const