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
Vector containing 'raw' data.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
AGXCORE_EXPORT const Real REAL_SQRT_EPSILON
Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices.
const TriangleData & getClipped(size_t i) const
If isClipped() == true, access i'th clipped triangle (three of them).
agx::Vector< GlobalTriangleData > Container
agxModel::TriangleData::Container clipped
Container with clipped triangles if this global triangle has been clipped.
Triangle data for a normal or a clipped triangle.
agx::Int32 state
Current state of this triangle.
agx::Bool isBelowSurface() const
agx::Bool isClipped() const
agx::Vec3 worldNormal
Normal to this triangle given in world coordinate system.
agx::Real area
Area of this triangle.
agxModel::VertexData vertices[3]
Vertices of this triangle.
const agxModel::VertexData & getVertex(size_t i) const
There are three vertices in this triangle.
agx::Bool isCalculationsEnable() const
agx::VectorPOD< TriangleData > Container
agx::Vec3 calculateNormal() const
agx::Real calculateArea() const
Vertex data for all global vertices in a mesh.
agx::VectorPOD< VertexData > Container
agx::Real heightFromSurface
Height from surface, negative if below the surface.
agx::Real pressure
Hydro- or aerostatic pressure.
agx::Real totalPressure() const
agx::Vec3 worldPosition
World position of this vertex.
agx::Real dynamicPressure
Hydro- or aerostatic dynamic (drag, lift etc) pressure.
agx::Bool isBelowSurface() const
agx::Vec3 worldVelocityOfMedium
Velocity of the medium this vertex is in (water current or wind velocity).
agx::Vec3 worldVelocity
Velocity of this vertex given in world coordinate system.
agx::Bool isOnSurface(agx::Real threshold=agx::REAL_SQRT_EPSILON) const