AGX Dynamics  2.37.3.2
agxModel::VertexData Struct Reference

Vertex data for all global vertices in a mesh. More...

#include <WindAndWaterUtils.h>

Public Types

typedef agx::VectorPOD< VertexData > Container
 

Public Member Functions

agx::Bool isBelowSurface () const
 
agx::Bool isOnSurface (agx::Real threshold=agx::REAL_SQRT_EPSILON) const
 
agx::Real totalPressure () const
 

Public Attributes

agx::Real dynamicPressure
 Hydro- or aerostatic dynamic (drag, lift etc) pressure. More...
 
agx::Real heightFromSurface
 Height from surface, negative if below the surface. More...
 
agx::Real pressure
 Hydro- or aerostatic pressure. More...
 
agx::Vec3 worldPosition
 World position of this vertex. More...
 
agx::Vec3 worldVelocity
 Velocity of this vertex given in world coordinate system. More...
 
agx::Vec3 worldVelocityOfMedium
 Velocity of the medium this vertex is in (water current or wind velocity). More...
 

Detailed Description

Vertex data for all global vertices in a mesh.

Definition at line 30 of file WindAndWaterUtils.h.

Member Typedef Documentation

◆ Container

Member Function Documentation

◆ isBelowSurface()

agx::Bool agxModel::VertexData::isBelowSurface ( ) const
Returns
true if this vertex is below "the surface", i.e., in the water

Definition at line 133 of file WindAndWaterUtils.h.

◆ isOnSurface()

agx::Bool agxModel::VertexData::isOnSurface ( agx::Real  threshold = agx::REAL_SQRT_EPSILON) const
Returns
true if exactly on the surface, otherwise false

Definition at line 138 of file WindAndWaterUtils.h.

◆ totalPressure()

agx::Real agxModel::VertexData::totalPressure ( ) const
inline
Returns
the total (static and dynamic) pressure

Definition at line 143 of file WindAndWaterUtils.h.

Member Data Documentation

◆ dynamicPressure

agx::Real agxModel::VertexData::dynamicPressure

Hydro- or aerostatic dynamic (drag, lift etc) pressure.

Definition at line 54 of file WindAndWaterUtils.h.

◆ heightFromSurface

agx::Real agxModel::VertexData::heightFromSurface

Height from surface, negative if below the surface.

Definition at line 52 of file WindAndWaterUtils.h.

◆ pressure

agx::Real agxModel::VertexData::pressure

Hydro- or aerostatic pressure.

Definition at line 53 of file WindAndWaterUtils.h.

◆ worldPosition

agx::Vec3 agxModel::VertexData::worldPosition

World position of this vertex.

Definition at line 49 of file WindAndWaterUtils.h.

◆ worldVelocity

agx::Vec3 agxModel::VertexData::worldVelocity

Velocity of this vertex given in world coordinate system.

Definition at line 50 of file WindAndWaterUtils.h.

◆ worldVelocityOfMedium

agx::Vec3 agxModel::VertexData::worldVelocityOfMedium

Velocity of the medium this vertex is in (water current or wind velocity).

Definition at line 51 of file WindAndWaterUtils.h.


The documentation for this struct was generated from the following file: