17 #ifndef AGXMODEL_WINDANDWATERUTILS_H 18 #define AGXMODEL_WINDANDWATERUTILS_H 60 BELOW_SURFACE = 1 << 0,
61 ABOVE_SURFACE = 1 << 1,
63 CALCULATIONS_ENABLE = 1 << 3
125 const DataType& getData()
const;
148 void solveL(
Vector& x )
const;
149 void solveU(
Vector& x )
const;
175 return m_data[ m_n * i + j ];
180 return m_data[ m_n * i + j ];
186 return heightFromSurface <
agx::Real( 0 );
191 return heightFromSurface > -threshold && heightFromSurface < threshold;
196 return (state & BELOW_SURFACE) != 0;
201 return (state & CLIPPED) != 0;
206 return (state & CALCULATIONS_ENABLE) != 0;
210 #endif // AGXMODEL_WINDANDWATERUTILS_H agx::Real area
Area of this triangle.
agx::Bool isClipped() const
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::Vector< GlobalTriangleData > Container
agx::Int32 state
Current state of this triangle.
agx::VectorPOD< VertexData > Container
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
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
agx::VectorPOD< TriangleData > Container
agx::Vec3 worldVelocity
Velocity of this vertex given in world coordinate system.
agx::Bool isBelowSurface() const
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
agx::RealValarray DataType
Vertex data for all global vertices in a mesh.
Triangle data for a normal or a clipped triangle.