Pointwise Plugin SDK
Classes | Functions
Fidelity Pointwise C++ Unstructured Grid Model Classes

The unstructured grid model classes. More...

+ Collaboration diagram for Fidelity Pointwise C++ Unstructured Grid Model Classes:

Classes

class  CaeFaceStreamHandler
 The unstructured grid model face stream handler class. More...
 
class  CaeStrCustomIndexHandler
 The structured grid model index mapper handler class. More...
 
class  CaeUnsBlock
 The unstructured block class. More...
 
class  CaeUnsCustomIndexHandler
 The unstructured grid model index mapper handler class. More...
 
class  CaeUnsElement
 The unstructured element class. More...
 
class  CaeUnsElementData
 The unstructured element data class. More...
 
class  CaeUnsEnumElementData
 The model unstructured element data class. More...
 
class  CaeUnsGridModel
 The unstructured grid model class. More...
 
class  CaeUnsPatch
 The unstructured patch class. More...
 
class  CaeUnsVertex
 The unstructured vertex class. More...
 

Functions

template<typename FTOR >
void CaeUnsElementData::walkPolyhedronFaces (const FTOR &f)
 If element is a polyhedron, functor f is invoked once for each face of the element. This call does nothing if element is not a polyhedron. More...
 
template<typename FTOR >
static void CaeUnsElementData::walkPolyhedronFaces (const PWGM_POLYELEMDATA &ped, const FTOR &f)
 Invokes functor f once for each polygon face of the polyhedron ped. More...
 

Detailed Description

The unstructured grid model classes.

These classes give read-only access to an unstructured grid model. For information about the unstructured grid model see:

Function Documentation

◆ walkPolyhedronFaces() [1/2]

template<typename FTOR >
void CaeUnsElementData::walkPolyhedronFaces ( const FTOR &  f)
inline

If element is a polyhedron, functor f is invoked once for each face of the element. This call does nothing if element is not a polyhedron.

Parameters
fThe functor to be invoked.
Note
The functor should return true/false to continue/stop the walking.
The functor must be callable as bool f(const PWP_UINT64 NumIndices, const PWP_UINT64 *Indices)
See also
walkPolyhedronFaces(const PWGM_POLYELEMDATA&, const FTOR&)
Sample Usage:
// Set contents of ed here...
[](const PWP_UINT64 NumIndices, const PWP_UINT64 *indices)
{
for (PWP_UINT64 n = 0; n < NumIndices; ++n) {
// do something with indices[n]
}
return true; // keep walking
});

Definition at line 267 of file CaeUnsElement.h.

References CaeUnsElementData::eed_, PWGM_ENUMELEMDATA::elemData, and PwElemDataCastToPoly().

◆ walkPolyhedronFaces() [2/2]

template<typename FTOR >
static void CaeUnsElementData::walkPolyhedronFaces ( const PWGM_POLYELEMDATA ped,
const FTOR &  f 
)
inlinestatic

Invokes functor f once for each polygon face of the polyhedron ped.

Parameters
pedThe PWGM_POLYELEMDATA buffer.
fThe functor to be invoked.
Note
The functor returns true/false to continue/stop the walking.
The functor must be callable as bool f(const PWP_UINT64 NumIndices, const PWP_UINT64 *Indices)
See also
walkPolyhedronFaces(const FTOR&)
Sample Usage:
// Set contents of ed here...
if (PwElemDataCastToPoly(&ed, &ped)) {
[](const PWP_UINT64 NumIndices, const PWP_UINT64 *indices)
{
for (PWP_UINT64 n = 0; n < NumIndices; ++n) {
// do something with indices[n]
}
return true; // keep walking
});
}

Definition at line 309 of file CaeUnsElement.h.

References ASSERT, PWGM_POLYELEMDATA::faceIndices, PWGM_POLYELEMDATA::indices, PWGM_POLYELEMDATA::numFaces, and PWGM_POLYELEMDATA::offsets.

PwElemDataCastToPoly
PWP_BOOL PwElemDataCastToPoly(const PWGM_ELEMDATA *eData, PWGM_POLYELEMDATA *polyData)
Cast a PWGM_ELEMDATA to a PWGM_POLYELEMDATA.
Definition: apiGridModel.cxx:395
PWGM_ELEMDATA
Element descriptor data type.
Definition: apiGridModel.h:737
CaeUnsElementData
The unstructured element data class.
Definition: CaeUnsElement.h:59
CaeUnsElementData::walkPolyhedronFaces
void walkPolyhedronFaces(const FTOR &f)
If element is a polyhedron, functor f is invoked once for each face of the element....
Definition: CaeUnsElement.h:267
PWGM_POLYELEMDATA
Polygon or polyhedron element descriptor data type.
Definition: apiGridModel.h:759
PWP_UINT64
unsigned long long PWP_UINT64
64-bit unsigned integer
Definition: apiPWP.h:243