12 #ifndef MESH_MODEL_CLASS 13 #define MESH_MODEL_CLASS 65 bool addPoint(
MLINT i1,
118 void deletePointByInd(
MLINT i1);
122 void deletePointByRef(
const std::string &ref);
126 void deletePointByRef(
MLINT iref);
130 MeshPoint* getMeshPointByName(
const std::string &name)
const;
136 MeshPoint* getMeshPointByRef(
const std::string &ref)
const;
196 void addEdgePoint(
MLINT i1,
214 void addFaceEdgePoint(
MLINT i1,
255 MeshEdge * getMeshEdgeByName(
const std::string &name)
const;
260 MeshEdge * getMeshEdgeByRef(
const std::string &ref)
const;
296 void deleteEdgeByRef(
const std::string &ref);
301 void deleteEdgeByRef(
MLINT iref);
394 MLINT i4 = MESH_TOPO_INDEX_UNUSED);
404 MLINT i4 = MESH_TOPO_INDEX_UNUSED);
412 void deleteFaceByRef(
const std::string &ref);
420 void deleteFaceByRef(
MLINT iref);
425 MeshFace * getMeshFaceByName(
const std::string &name)
const;
430 MeshFace * getMeshFaceByRef(
const std::string &ref)
const;
435 MLINT getNumEdges()
const;
440 MLINT getNumFaces()
const;
446 bool addMeshString(
MeshString* meshString,
bool mapID=
false);
461 MeshString * getMeshStringByRef(
const std::string &ref)
const;
467 bool addMeshSheet(
MeshSheet* meshSheet,
bool mapID=
false);
482 MeshSheet * getMeshSheetByRef(
const std::string &ref)
const;
487 void getMeshEdges(std::vector<const MeshEdge *> &edges)
const;
490 void getMeshFaces(std::vector<const MeshFace *> &faces)
const;
495 void getMeshStrings(std::vector<MeshString *> &strings)
const;
498 size_t getMeshStringCount()
const;
501 void getMeshSheets(std::vector<MeshSheet *> &sheets)
const;
504 size_t getMeshSheetCount()
const;
522 std::map<pwiFnvHash::FNVHash, MeshPoint*> pointMap_;
MeshSheetNameMap meshSheetNameMap_
Map MeshSheet name to unique ID.
MeshEdgeNameMap meshEdgeNameMap_
Map MeshEdge name to unique ID.
MeshTopoRefToNameMap meshSheetRefToNameMap_
Map MeshSheet application-defined reference string to name.
MeshTopoIDToNameMap meshSheetIDToNameMap_
Map MeshSheet unique ID to name.
std::map< std::string, MeshEdge * > MeshEdgeNameMap
MeshTopoRefToNameMap meshEdgeRefToNameMap_
Map MeshEdge application-defined reference string to name.
Storage for mesh topology and geometry associativity data.
MLUINT64 MLUINT
Standard unsigned integer - value depends on IS64BIT macro.
std::map< std::string, MeshFace * > MeshFaceNameMap
MeshStringNameMap meshStringNameMap_
Map MeshString name to unique ID.
std::map< pwiFnvHash::FNVHash, MeshPoint * > faceEdgePointMap_
Map face-edge-point index hash to MeshPoint.
3D (volume) mesh topology
MeshTopoIDToNameMap meshStringIDToNameMap_
Map MeshString unique ID to name.
std::map< std::string, MeshSheet * > MeshSheetNameMap
MeshTopoRefToNameMap meshFaceRefToNameMap_
Map MeshFace application-defined reference string to name.
std::map< pwiFnvHash::FNVHash, MeshFace * > faceMap_
Map face index hash to MeshFace.
std::map< std::string, MeshModel * > MeshModelNameMap
2D (surface) mesh topology
MeshTopoIDToNameMap meshPointIDToNameMap_
Map MeshPoint unique ID to name.
std::map< std::string, std::string > MeshTopoRefToNameMap
std::map< pwiFnvHash::FNVHash, MeshEdge * > edgeMap_
Map edge indices hash to edge.
std::map< std::string, MeshString * > MeshStringNameMap
static MLUINT nameCounter_
unique name counter, global for all MeshTopo object names
MeshTopoRefToNameMap meshStringRefToNameMap_
Map MeshString application-defined reference string to name.
std::map< MLINT, std::string > MeshTopoIDToNameMap
virtual MLUINT & getNameCounter()
Returns the current value of the counter used for generating unique mesh entity names.
virtual const std::string & getBaseName() const
Returns the base name used for generating unique mesh entity names.
std::map< std::string, MeshPoint * > MeshPointNameMap
std::map< pwiFnvHash::FNVHash, MeshPoint * > edgePointMap_
Map edge-point index hash to MeshPoint.
std::map< pwiFnvHash::FNVHash, MeshEdge * > faceEdgeMap_
Map face-edge index hash to MeshEdge.
MeshTopoIDToNameMap meshEdgeIDToNameMap_
Map MeshEdge name to unique ID.
bool getMeshStringByName(const std::string &name, MeshModel **model, MeshString **string) const
Get MeshString by name.
MeshFaceNameMap meshFaceNameMap_
Map MeshFace name to unique ID.
MeshPointNameMap meshPointNameMap_
Map MeshPoint name to unique ID.
std::vector< std::string > StringArray
Base class for mesh topology entities.
MeshTopoRefToNameMap meshPointRefToNameMap_
Map MeshPoint application-defined reference string to name.
Parametric geometry data.
MLINT64 MLINT
Standard integer - value depends on IS64BIT macro.
MeshTopoIDToNameMap meshFaceIDToNameMap_
Map MeshFace unique ID to name.
bool getMeshSheetByName(const std::string &name, MeshModel **model, MeshSheet **sheet) const
Get MeshSheet by name.