MeshLink
Computational geometry access
|
3D (volume) mesh topology More...
#include <MeshModel.h>
Public Member Functions | |
MeshModel (std::string &ref, MLINT mid, MLINT aref, MLINT gref, std::string &name) | |
Construct with reference to Model entity in mesh data. More... | |
bool | addPoint (MLINT i1, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, bool mapID) |
Add a MeshPoint to the MeshModel using index. More... | |
bool | addPoint (std::string &ref, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, bool mapID) |
Add a MeshPoint to the MeshModel using reference. More... | |
MeshPoint * | findLowestTopoPointByInd (MLINT i1) const |
Find a point at the lowest topology level of the associativity data. More... | |
MeshPoint * | findHighestTopoPointByInd (MLINT i1) const |
Find a point at the highest topology level of the associativity data. More... | |
MeshPoint * | findPointByInd (MLINT i1) const |
Find a point in the MeshModel associativity data. More... | |
void | deletePointByInd (MLINT i1) |
Delete an MeshPoint from the MeshModel by point index. More... | |
void | deletePointByRef (const std::string &ref) |
Delete an MeshPoint from the MeshModel by application-defined reference. More... | |
void | deletePointByRef (MLINT iref) |
Delete an MeshPoint from the MeshModel by application-defined integer reference. More... | |
MeshPoint * | getMeshPointByName (const std::string &name) const |
Return a MeshPoint witht the given name. More... | |
MeshPoint * | getMeshPointByID (MLINT id) const |
Return a MeshPoint witht the given ID. More... | |
MeshPoint * | getMeshPointByRef (const std::string &ref) const |
Return a MeshPoint witht the given reference. More... | |
StringArray | getMeshPointRefs () const |
Return an array of all MeshPoint references in this model. More... | |
bool | addEdge (MLINT i1, MLINT i2, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, bool mapID) |
Add a MeshEdge to the MeshModel using indices. More... | |
bool | addEdge (std::string &ref, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, bool mapID) |
Add a MeshEdge to the MeshModel using reference. More... | |
void | addEdgePoint (MLINT i1, MLINT mid, MLINT aref, MLINT gref, ParamVertex *pv1) |
Add a edge-point to the MeshModel. More... | |
void | addFaceEdgePoint (MLINT i1, MLINT mid, MLINT aref, MLINT gref, ParamVertex *pv1) |
Add a face-edge-point to the MeshModel. More... | |
MeshPoint * | findEdgePointByInd (MLINT i1) const |
Find an edge-point in the MeshString associativity data. More... | |
MeshPoint * | findFaceEdgePointByInd (MLINT i1) const |
Find a face-edge-point in the MeshSheet associativity data. More... | |
void | addFaceEdge (MLINT i1, MLINT i2, MLINT mid, MLINT aref, MLINT gref, ParamVertex *pv1, ParamVertex *pv2) |
Add a face-edge to the MeshModel. More... | |
MeshEdge * | getMeshEdgeByName (const std::string &name) const |
Find a MeshEdge by name. More... | |
MeshEdge * | getMeshEdgeByRef (const std::string &ref) const |
Find a MeshEdge by reference. More... | |
MeshEdge * | findLowestTopoEdgeByInds (MLINT i1, MLINT i2) const |
Find an edge at the lowest topology level of the associativity data. More... | |
MeshEdge * | findEdgeByInds (MLINT i1, MLINT i2) const |
Find an edge in the MeshString associativity data. More... | |
MeshEdge * | findFaceEdgeByInds (MLINT i1, MLINT i2) const |
Find an edge in the MeshSheet associativity data. More... | |
void | deleteEdgeByInds (MLINT i1, MLINT i2) |
Delete an MeshEdge from the MeshModel by point indices. More... | |
void | deleteEdgeByRef (const std::string &ref) |
Delete an MeshEdge from the MeshModel by application-defined reference. More... | |
void | deleteEdgeByRef (MLINT iref) |
Delete an MeshEdge from the MeshModel by application-defined integer reference. More... | |
bool | addFace (MLINT i1, MLINT i2, MLINT i3, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, ParamVertex *pv3, bool mapID) |
Add a triangular MeshFace to the MeshModel using indices. More... | |
bool | addFace (std::string &ref, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, ParamVertex *pv3, bool mapID) |
Add a triangular MeshFace to the MeshModel using reference. More... | |
bool | addFace (MLINT i1, MLINT i2, MLINT i3, MLINT i4, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, ParamVertex *pv3, ParamVertex *pv4, bool mapID) |
Add a quadrilateral MeshFace to the MeshModel using indices. More... | |
bool | addFace (std::string &ref, MLINT mid, MLINT aref, MLINT gref, std::string &name, ParamVertex *pv1, ParamVertex *pv2, ParamVertex *pv3, ParamVertex *pv4, bool mapID) |
Add a quadrilateral MeshFace to the MeshModel using reference. More... | |
MeshFace * | findFaceByInds (MLINT i1, MLINT i2, MLINT i3, MLINT i4=MESH_TOPO_INDEX_UNUSED) |
Find a (triangular or quadrilateral) face in the MeshSheet associativity data. More... | |
void | deleteFaceByInds (MLINT i1, MLINT i2, MLINT i3, MLINT i4=MESH_TOPO_INDEX_UNUSED) |
Delete an MeshFace from the MeshModel using indices. More... | |
void | deleteFaceByRef (const std::string &ref) |
Delete an MeshFace from the MeshModel using reference. More... | |
void | deleteFaceByRef (MLINT iref) |
Delete an MeshFace from the MeshModel using reference. More... | |
MeshFace * | getMeshFaceByName (const std::string &name) const |
Find a MeshFace in the MeshModel using name. More... | |
MeshFace * | getMeshFaceByRef (const std::string &ref) const |
Find a MeshFace in the MeshModel using reference. More... | |
MLINT | getNumEdges () const |
Return the number of edges in the MeshModel. More... | |
MLINT | getNumFaces () const |
Return the number of faces in the MeshModel. More... | |
bool | addMeshString (MeshString *meshString, bool mapID=false) |
Add a MeshString to the MeshModel. More... | |
MeshString * | getMeshStringByID (MLINT id) const |
Find a MeshString by ID. More... | |
MeshString * | getMeshStringByName (const std::string &name) const |
Find a MeshString by name. More... | |
MeshString * | getMeshStringByRef (const std::string &ref) const |
Find a MeshString by reference. More... | |
bool | addMeshSheet (MeshSheet *meshSheet, bool mapID=false) |
Add a MeshSheet to the MeshModel. More... | |
MeshSheet * | getMeshSheetByID (MLINT id) const |
Find a MeshSheet by ID. More... | |
MeshSheet * | getMeshSheetByName (const std::string &name) const |
Find a MeshSheet by name. More... | |
MeshSheet * | getMeshSheetByRef (const std::string &ref) const |
Find a MeshSheet by reference. More... | |
void | getMeshEdges (std::vector< const MeshEdge * > &edges) const |
Return list of MeshEdge in the MeshModel. More... | |
void | getMeshFaces (std::vector< const MeshFace * > &faces) const |
Return list of all MeshFace in the MeshModel. More... | |
void | getMeshStrings (std::vector< MeshString * > &strings) const |
Return list of MeshString in the MeshModel. More... | |
size_t | getMeshStringCount () const |
Return count of MeshString in the MeshModel. More... | |
void | getMeshSheets (std::vector< MeshSheet * > &sheets) const |
Return list of all MeshSheet in the MeshModel. More... | |
size_t | getMeshSheetCount () const |
Return count of MeshSheets in the MeshModel. More... | |
~MeshModel () | |
Destructor. More... | |
virtual const std::string & | getBaseName () const |
Return the unique base name for this model. More... | |
virtual MLUINT & | getNameCounter () |
Return the current value of the unique base name counter. More... | |
Public Member Functions inherited from MeshTopo | |
MeshTopo (MLINT mid, MLINT aref, MLINT gref, const std::string &name) | |
Construct without application-defined reference. More... | |
MeshTopo (const std::string &ref, MLINT mid, MLINT aref, MLINT gref, const std::string &name) | |
Construct with application-defined reference to entity in mesh data. More... | |
virtual MLINT | getID () const |
Return the ID of this MeshTopo. More... | |
virtual MLINT | getGref () const |
Return the GID of GeometryGroup associated with this MeshTopo. More... | |
virtual MLINT | getAref () const |
Return the AttID of MeshLinkAttribute associated with this MeshTopo. More... | |
virtual void | getName (const char **name) const |
Return the name of this MeshTopo. More... | |
virtual const std::string & | getName () const |
Return the name of this MeshTopo. More... | |
virtual const std::string & | getRef () const |
Return the application-defined mesh data reference of this MeshTopo. More... | |
virtual void | addParamVertex (ParamVertex *pv, bool mapID) |
Add a ParamVertex. More... | |
virtual ParamVertex * | getParamVertByVref (const std::string &vref) const |
Find a ParamVertex by vertex reference. More... | |
virtual ParamVertex * | getParamVertByID (MLINT id) const |
Find a ParamVertex by ID. More... | |
virtual MLINT | getNumParamVerts () const |
Return the number of ParamVertex objects for this MeshTopo. More... | |
void | getParamVerts (std::vector< const ParamVertex * > &pv) const |
Return vector of ParamVertex objects for this MeshTopo. More... | |
virtual const ParamVertVrefMap & | getParamVertVrefMap () const |
Return the map of application-defined reference string to ParamVertex objects for this MeshTopo. More... | |
virtual void | setID (MLINT id) |
Set the ID of this MeshTopo. More... | |
virtual void | setGref (MLINT gref) |
Set the GeometryGroup GID referenced by this MeshTopo. More... | |
virtual void | setAref (MLINT aref) |
Set the MeshLinkAttribute AttID referenced by this MeshTopo. More... | |
virtual void | setRef (const char *ref) |
Set the reference of this MeshTopo. More... | |
void | setName (const std::string &name) |
Set the name of this MeshTopo. More... | |
void | setName (const char *name) |
Set the name of this MeshTopo. More... | |
bool | hasID () const |
Whether the MeshTopo has an ID defined. More... | |
bool | hasGref () const |
Whether the MeshTopo has a GeometryGroup GID reference defined. More... | |
bool | hasAref () const |
Whether the MeshTopo has a MeshLinkAttribute AttID reference defined. More... | |
std::vector< MLINT > | getAttributeIDs (const MeshAssociativity &meshAssoc) const |
Return list of MeshLinkAttribute AttIDs referenced by the MeshTopo. More... | |
std::string | getNextName () |
Generate and return a unique name for the entity. More... | |
void | setOrderCounter (MLUINT counter) |
Set order counter (in parent topo) More... | |
MLUINT | getOrderCounter () const |
Returns order counter (in parent topo) More... | |
MeshTopo () | |
Default constructor. More... | |
~MeshTopo () | |
Destructor. More... | |
Private Member Functions | |
MeshModel () | |
Hidden default constructor. More... | |
Static Private Attributes | |
static MLUINT | nameCounter_ |
unique name counter, global for all MeshTopo object names More... | |
Friends | |
class | MeshAssociativity |
Additional Inherited Members | |
Static Public Member Functions inherited from MeshTopo | |
static bool | OrderCompare (const MeshTopo *topo1, const MeshTopo *topo2) |
Protected Attributes inherited from MeshTopo | |
std::string | ref_ |
The application-defined reference string. More... | |
MLINT | mid_ |
The unique entity ID. More... | |
MLINT | aref_ |
The attribute reference ID (AttID) More... | |
MLINT | gref_ |
The geometry reference ID. More... | |
std::string | name_ |
The name of the mesh entity. More... | |
MLUINT | orderCounter_ |
creation order counter in parent entity More... | |
ParamVertVrefMap | paramVertVrefMap_ |
ParamVertex objects mapped to this entity by application-defined reference string. More... | |
ParamVertIDToVrefMap | paramVertIDToVrefMap_ |
ParamVertex objects mapped to this entity by unique entity ID. More... | |
3D (volume) mesh topology
Provides access to MeshLink schema MeshModel data and is a container for MeshString and MeshSheet objects.
Definition at line 38 of file MeshModel.h.
Construct with reference to Model entity in mesh data.
ref | the application-defined reference string |
mid | the model ID |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the model name |
MeshModel::~MeshModel | ( | ) |
Destructor.
|
inlineprivate |
Hidden default constructor.
Definition at line 519 of file MeshModel.h.
bool MeshModel::addEdge | ( | MLINT | i1, |
MLINT | i2, | ||
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
bool | mapID | ||
) |
Add a MeshEdge to the MeshModel using indices.
MeshEdges belong to MeshStrings, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1,i2 | point indices defining an edge |
mid | unique ID of edge |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the edge (a unique name will be generated if empty) |
pv1 | the ParamVertex for the starting point, if any |
pv2 | the ParamVertex for the ending point, if any |
mapID | whether to record the mapping of unique ID to name |
bool MeshModel::addEdge | ( | std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
bool | mapID | ||
) |
Add a MeshEdge to the MeshModel using reference.
MeshEdges belong to MeshStrings, however, adding them to the model is useful for access patterns when working with a MeshModel.
ref | the application-defined reference data for the edge |
mid | unique ID of edge |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the edge (a unique name will be generated if empty) |
pv1 | the ParamVertex for the starting point, if any |
pv2 | the ParamVertex for the ending point, if any |
mapID | whether to record the mapping of unique ID to name |
void MeshModel::addEdgePoint | ( | MLINT | i1, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
ParamVertex * | pv1 | ||
) |
Add a edge-point to the MeshModel.
Edge-points are created when a MeshEdge is added to a MeshString. They belong to MeshStrings, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1 | index of edge point |
mid | unique ID of edge point |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
pv1 | the ParamVertex for the edge point, if any |
bool MeshModel::addFace | ( | MLINT | i1, |
MLINT | i2, | ||
MLINT | i3, | ||
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
ParamVertex * | pv3, | ||
bool | mapID | ||
) |
Add a triangular MeshFace to the MeshModel using indices.
MeshFaces belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1,i2,i3 | the point indices of the triangular face to add |
mid | unique ID of face |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the triangular face to add |
pv1,pv2,pv3 | (optional) the ParamVertex objects associated with the face points |
mapID | whether to record the mapping of unique ID to name |
bool MeshModel::addFace | ( | std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
ParamVertex * | pv3, | ||
bool | mapID | ||
) |
Add a triangular MeshFace to the MeshModel using reference.
MeshFaces belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
ref | the application-defined reference of the face to add |
mid | unique ID of face |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the triangular face to add |
pv1,pv2,pv3 | (optional) the ParamVertex objects associated with the face points |
mapID | whether to record the mapping of unique ID to name |
bool MeshModel::addFace | ( | MLINT | i1, |
MLINT | i2, | ||
MLINT | i3, | ||
MLINT | i4, | ||
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
ParamVertex * | pv3, | ||
ParamVertex * | pv4, | ||
bool | mapID | ||
) |
Add a quadrilateral MeshFace to the MeshModel using indices.
MeshFaces belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1,i2,i3,i4 | the point indices of the quadrilateral face to add |
mid | unique ID of face |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the quadrilateral face to add |
pv1,pv2,pv3,pv4 | (optional) the ParamVertex objects associated with the face points |
mapID | whether to record the mapping of unique ID to name |
bool MeshModel::addFace | ( | std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2, | ||
ParamVertex * | pv3, | ||
ParamVertex * | pv4, | ||
bool | mapID | ||
) |
Add a quadrilateral MeshFace to the MeshModel using reference.
MeshFaces belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
ref | the application-defined reference of the face to add |
mid | unique ID of face |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
name | the name of the quadrilateral face to add |
pv1,pv2,pv3,pv4 | (optional) the ParamVertex objects associated with the face points |
mapID | whether to record the mapping of unique ID to name |
void MeshModel::addFaceEdge | ( | MLINT | i1, |
MLINT | i2, | ||
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
ParamVertex * | pv1, | ||
ParamVertex * | pv2 | ||
) |
Add a face-edge to the MeshModel.
Face-edges are created when a MeshFace is added to a MeshSheet. They belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1,i2 | the starting point index of the face-edge |
mid | unique ID of face edge |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
pv1,pv2 | (optional) the ParamVertex objects associated with the face-edge points |
void MeshModel::addFaceEdgePoint | ( | MLINT | i1, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
ParamVertex * | pv1 | ||
) |
Add a face-edge-point to the MeshModel.
Face-edge-points are created when a MeshFace is added to a MeshSheet. They belong to MeshSheets, however, adding them to the model is useful for access patterns when working with a MeshModel.
i1 | index of face edge point |
mid | unique ID of face edge point |
aref | the attribute reference ID (AttID) |
gref | the geometry reference ID |
pv1 | the ParamVertex for the face edge point, if any |
bool MeshModel::addMeshSheet | ( | MeshSheet * | meshSheet, |
bool | mapID = false |
||
) |
bool MeshModel::addMeshString | ( | MeshString * | meshString, |
bool | mapID = false |
||
) |
Add a MeshString to the MeshModel.
meshString | the MeshString to add |
mapID | whether to map the ID of the MeshString to its unique name |
bool MeshModel::addPoint | ( | MLINT | i1, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
bool | mapID | ||
) |
Add a MeshPoint to the MeshModel using index.
i1 | the uniuque point index |
mid | the ID of the point |
aref | the point attribute reference ID (AttID) |
gref | the point geometry reference ID |
name | the point name |
pv1 | the ParamVertex parametric location of the point |
mapID | indicates whether to map the ID to the point name |
bool MeshModel::addPoint | ( | std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
std::string & | name, | ||
ParamVertex * | pv1, | ||
bool | mapID | ||
) |
Add a MeshPoint to the MeshModel using reference.
ref | the application-defined reference string |
mid | the ID of the point |
aref | the point attribute reference ID (AttID) |
gref | the point geometry reference ID |
name | the point name (a unique name will be generated if empty) |
pv1 | the ParamVertex parametric location of the point |
mapID | indicates whether to map the ID to the point name |
void MeshModel::deleteEdgeByRef | ( | const std::string & | ref | ) |
Delete an MeshEdge from the MeshModel by application-defined reference.
ref | application-defined reference of the edge to delete |
void MeshModel::deleteEdgeByRef | ( | MLINT | iref | ) |
Delete an MeshEdge from the MeshModel by application-defined integer reference.
iref | application-defined integer reference of the edge to delete |
void MeshModel::deleteFaceByRef | ( | const std::string & | ref | ) |
void MeshModel::deleteFaceByRef | ( | MLINT | iref | ) |
void MeshModel::deletePointByInd | ( | MLINT | i1 | ) |
void MeshModel::deletePointByRef | ( | const std::string & | ref | ) |
Delete an MeshPoint from the MeshModel by application-defined reference.
ref | the application-defined reference of the point to delete |
void MeshModel::deletePointByRef | ( | MLINT | iref | ) |
Delete an MeshPoint from the MeshModel by application-defined integer reference.
iref | the application-defined integer reference of the point to delete |
Find an edge in the MeshString associativity data.
Search is restricted to the MeshString topology level
i1,i2 | the indices of the points defining the desired string edge |
Find an edge-point in the MeshString associativity data.
Search is restricted to the MeshString topology level
i1 | the index of the desired edge-point |
MeshFace* MeshModel::findFaceByInds | ( | MLINT | i1, |
MLINT | i2, | ||
MLINT | i3, | ||
MLINT | i4 = MESH_TOPO_INDEX_UNUSED |
||
) |
Find a (triangular or quadrilateral) face in the MeshSheet associativity data.
i1,i2,i3 | the point indices of the desired triangular or quadrilateral face |
i4 | (optional) the index of the fourth point of the desired quadrilateral face |
Find a point at the highest topology level of the associativity data.
Searches MeshModel, MeshSheet, MeshString topology levels in that order
i1 | The index of the desired MeshPoint |
Find an edge at the lowest topology level of the associativity data.
Searches MeshString and MeshSheet topology levels in that order
i1,i2 | the indices of the points defining the desired string or sheet edge |
Find a point at the lowest topology level of the associativity data.
Searches MeshString, MeshSheet, MeshModel topology levels in that order
i1 | the index of the desired MeshPoint |
|
virtual |
Return the unique base name for this model.
Reimplemented from MeshTopo.
MeshEdge* MeshModel::getMeshEdgeByName | ( | const std::string & | name | ) | const |
Find a MeshEdge by name.
name | the name of the desired edge |
MeshEdge* MeshModel::getMeshEdgeByRef | ( | const std::string & | ref | ) | const |
Find a MeshEdge by reference.
ref | the application-defined reference of the desired edge |
void MeshModel::getMeshEdges | ( | std::vector< const MeshEdge * > & | edges | ) | const |
Return list of MeshEdge in the MeshModel.
Return will include all MeshEdge objects from all MeshString objects in this model
MeshFace* MeshModel::getMeshFaceByName | ( | const std::string & | name | ) | const |
MeshFace* MeshModel::getMeshFaceByRef | ( | const std::string & | ref | ) | const |
void MeshModel::getMeshFaces | ( | std::vector< const MeshFace * > & | faces | ) | const |
MeshPoint* MeshModel::getMeshPointByName | ( | const std::string & | name | ) | const |
MeshPoint* MeshModel::getMeshPointByRef | ( | const std::string & | ref | ) | const |
StringArray MeshModel::getMeshPointRefs | ( | ) | const |
Return an array of all MeshPoint references in this model.
MeshSheet* MeshModel::getMeshSheetByName | ( | const std::string & | name | ) | const |
MeshSheet* MeshModel::getMeshSheetByRef | ( | const std::string & | ref | ) | const |
size_t MeshModel::getMeshSheetCount | ( | ) | const |
Return count of MeshSheets in the MeshModel.
void MeshModel::getMeshSheets | ( | std::vector< MeshSheet * > & | sheets | ) | const |
MeshString* MeshModel::getMeshStringByID | ( | MLINT | id | ) | const |
Find a MeshString by ID.
id | the ID of the desired MeshString |
MeshString* MeshModel::getMeshStringByName | ( | const std::string & | name | ) | const |
Find a MeshString by name.
name | the unique name of the desired MeshString |
MeshString* MeshModel::getMeshStringByRef | ( | const std::string & | ref | ) | const |
Find a MeshString by reference.
ref | the application-defined reference of the desired MeshString |
size_t MeshModel::getMeshStringCount | ( | ) | const |
Return count of MeshString in the MeshModel.
void MeshModel::getMeshStrings | ( | std::vector< MeshString * > & | strings | ) | const |
Return list of MeshString in the MeshModel.
Return will include all MeshString objects in this model
|
virtual |
Return the current value of the unique base name counter.
Reimplemented from MeshTopo.
MLINT MeshModel::getNumEdges | ( | ) | const |
Return the number of edges in the MeshModel.
Return will be the count of all MeshEdges from all MeshStrings
MLINT MeshModel::getNumFaces | ( | ) | const |
Return the number of faces in the MeshModel.
Return will be the count of all MeshFaces from all MeshSheets
|
friend |
Definition at line 40 of file MeshModel.h.
|
private |
Map edge indices hash to edge.
Definition at line 531 of file MeshModel.h.
|
private |
Map edge-point index hash to MeshPoint.
Definition at line 540 of file MeshModel.h.
|
private |
Map face-edge index hash to MeshEdge.
Definition at line 546 of file MeshModel.h.
|
private |
Map face-edge-point index hash to MeshPoint.
Definition at line 542 of file MeshModel.h.
|
private |
Map face index hash to MeshFace.
Definition at line 549 of file MeshModel.h.
|
private |
Map MeshEdge name to unique ID.
Definition at line 535 of file MeshModel.h.
|
private |
Map MeshEdge name to unique ID.
Definition at line 533 of file MeshModel.h.
|
private |
Map MeshEdge application-defined reference string to name.
Definition at line 537 of file MeshModel.h.
|
private |
Map MeshFace unique ID to name.
Definition at line 553 of file MeshModel.h.
|
private |
Map MeshFace name to unique ID.
Definition at line 551 of file MeshModel.h.
|
private |
Map MeshFace application-defined reference string to name.
Definition at line 555 of file MeshModel.h.
|
private |
Map MeshPoint unique ID to name.
Definition at line 526 of file MeshModel.h.
|
private |
Map MeshPoint name to unique ID.
Definition at line 524 of file MeshModel.h.
|
private |
Map MeshPoint application-defined reference string to name.
Definition at line 528 of file MeshModel.h.
|
private |
Map MeshSheet unique ID to name.
Definition at line 567 of file MeshModel.h.
|
private |
Map MeshSheet name to unique ID.
Definition at line 565 of file MeshModel.h.
|
private |
Map MeshSheet application-defined reference string to name.
Definition at line 569 of file MeshModel.h.
|
private |
Map MeshString unique ID to name.
Definition at line 560 of file MeshModel.h.
|
private |
Map MeshString name to unique ID.
Definition at line 558 of file MeshModel.h.
|
private |
Map MeshString application-defined reference string to name.
Definition at line 562 of file MeshModel.h.
|
staticprivate |
unique name counter, global for all MeshTopo object names
Definition at line 516 of file MeshModel.h.
|
private |
Map point index hash to MeshPoint.
Definition at line 519 of file MeshModel.h.