AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxModel::GlobalTriangleData Struct Reference

Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices. More...

#include <WindAndWaterUtils.h>

+ Inheritance diagram for agxModel::GlobalTriangleData:

Public Types

typedef agx::Vector
< GlobalTriangleData > 
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
 
agx::Bool isBelowSurface () const
 
agx::Bool isCalculationsEnable () const
 
agx::Bool isClipped () const
 

Public Attributes

agx::Real area
 Area of this triangle. More...
 
agxModel::TriangleData::Container clipped
 Container with clipped triangles if this global triangle has been clipped. More...
 
agx::UInt pfrIndex
 
agx::Int32 state
 Current state of this triangle. More...
 
agx::UInt vertexIndices [3]
 Vertex indices. More...
 
agxModel::VertexData vertices [3]
 Vertices of this triangle. More...
 
agx::Vec3 worldNormal
 Normal to this triangle given in world coordinate system. More...
 

Detailed Description

Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices.

Definition at line 101 of file WindAndWaterUtils.h.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
BELOW_SURFACE 
ABOVE_SURFACE 
CLIPPED 
CALCULATIONS_ENABLE 

Definition at line 58 of file WindAndWaterUtils.h.

Member Function Documentation

agx::Real agxModel::TriangleData::calculateArea ( ) const
inherited
Returns
the calculated area of this triangle (note that the area is cached, this method is usually only used in debug purposes)
agx::Vec3 agxModel::TriangleData::calculateNormal ( ) const
inherited
Returns
the calculated normal of this triangle (not that the normal is cached, this method is usually only used in debug purposes)
agx::Bool agxModel::TriangleData::isBelowSurface ( ) const
inherited
Returns
true if this triangle is below the surface

Definition at line 194 of file WindAndWaterUtils.h.

References agxModel::TriangleData::BELOW_SURFACE, and agxModel::TriangleData::state.

agx::Bool agxModel::TriangleData::isCalculationsEnable ( ) const
inherited
Returns
true if calculations should be done on this triangle

Definition at line 204 of file WindAndWaterUtils.h.

References agxModel::TriangleData::CALCULATIONS_ENABLE, and agxModel::TriangleData::state.

agx::Bool agxModel::TriangleData::isClipped ( ) const
inherited
Returns
true if this is a clipped triangle

Definition at line 199 of file WindAndWaterUtils.h.

References agxModel::TriangleData::CLIPPED, and agxModel::TriangleData::state.

Referenced by agxModel::triangleIterator().

Member Data Documentation

agx::Real agxModel::TriangleData::area
inherited

Area of this triangle.

Definition at line 93 of file WindAndWaterUtils.h.

agxModel::TriangleData::Container agxModel::GlobalTriangleData::clipped

Container with clipped triangles if this global triangle has been clipped.

Definition at line 106 of file WindAndWaterUtils.h.

Referenced by agxModel::triangleIterator().

agx::UInt agxModel::TriangleData::pfrIndex
inherited

Definition at line 95 of file WindAndWaterUtils.h.

agx::Int32 agxModel::TriangleData::state
inherited
agx::UInt agxModel::GlobalTriangleData::vertexIndices[3]

Vertex indices.

Definition at line 105 of file WindAndWaterUtils.h.

agxModel::VertexData agxModel::TriangleData::vertices[3]
inherited

Vertices of this triangle.

Definition at line 91 of file WindAndWaterUtils.h.

agx::Vec3 agxModel::TriangleData::worldNormal
inherited

Normal to this triangle given in world coordinate system.

Definition at line 92 of file WindAndWaterUtils.h.


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