AGX Dynamics  2.37.3.2
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
 
- Public Types inherited from agxModel::TriangleData
typedef agx::VectorPOD< TriangleData > Container
 
enum  State { BELOW_SURFACE = 1 << 0, ABOVE_SURFACE = 1 << 1, CLIPPED = 1 << 2, CALCULATIONS_ENABLE = 1 << 3 }
 

Public Member Functions

const TriangleData & getClipped (size_t i) const
 If isClipped() == true, access i'th clipped triangle (three of them). More...
 
- Public Member Functions inherited from agxModel::TriangleData
agx::Real calculateArea () const
 
agx::Vec3 calculateNormal () const
 
const agxModel::VertexData & getVertex (size_t i) const
 There are three vertices in this triangle. More...
 
agx::Bool isBelowSurface () const
 
agx::Bool isCalculationsEnable () const
 
agx::Bool isClipped () const
 

Public Attributes

agxModel::TriangleData::Container clipped
 Container with clipped triangles if this global triangle has been clipped. More...
 
agx::UInt vertexIndices [3]
 Vertex indices. More...
 
- Public Attributes inherited from agxModel::TriangleData
agx::Real area
 Area of this triangle. More...
 
agx::Int32 state
 Current state of this triangle. 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 116 of file WindAndWaterUtils.h.

Member Typedef Documentation

◆ Container

Member Function Documentation

◆ getClipped()

const TriangleData & agxModel::GlobalTriangleData::getClipped ( size_t  i) const
inline

If isClipped() == true, access i'th clipped triangle (three of them).

Parameters
i- clipped triangle index
Returns
clipped tringle of index i

Definition at line 168 of file WindAndWaterUtils.h.

References agxAssert.

Member Data Documentation

◆ clipped

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

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

Definition at line 129 of file WindAndWaterUtils.h.

Referenced by agxModel::triangleIterator().

◆ vertexIndices

agx::UInt agxModel::GlobalTriangleData::vertexIndices[3]

Vertex indices.

Definition at line 128 of file WindAndWaterUtils.h.


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