Version: 9.12.0
DriverMED Namespace Reference

Functions

int GetMedGeoType (SMDSAbs_EntityType smdsType)
 Returns MED element geom type (MED::EGeometrieElement) by SMDS type. More...
 
SMDSAbs_EntityType GetSMDSType (int medType)
 Returns SMDS element geom type by MED type (MED::EGeometrieElement) More...
 
bool buildMeshGrille (const MED::PWrapper &theWrapper, const MED::PMeshInfo &theMeshInfo, SMESHDS_Mesh *theMesh, const TID2FamilyMap &myFamilies)
 Reading the structured mesh and convert to non structured (by filling of smesh structure for non structured mesh) More...
 
bool checkFamilyID (DriverMED_FamilyPtr &aFamily, int anID, const TID2FamilyMap &myFamilies)
 Ensure aFamily has a required ID. More...
 
const SMDS_MeshNodeFindNode (const SMDS_Mesh *theMesh, TInt theId)
 
const std::vector< MED::EGeometrieElement > & getMedTypesVec ()
 Returns a vector containing MED::EGeometrieElement for each SMDSAbs_EntityType. More...
 

Function Documentation

◆ buildMeshGrille()

bool DriverMED::buildMeshGrille ( const MED::PWrapper theWrapper,
const MED::PMeshInfo theMeshInfo,
SMESHDS_Mesh myMesh,
const TID2FamilyMap myFamilies 
)

Reading the structured mesh and convert to non structured (by filling of smesh structure for non structured mesh)

Parameters
theWrapper- PWrapper const pointer
theMeshInfo- PMeshInfo const pointer
myFamilies- a map of the family ID to the Family
Returns
TRUE, if successfully. Else FALSE

References SMESHDS_Mesh::AddEdgeWithID(), SMESHDS_Mesh::AddFaceWithID(), SMESHDS_Mesh::AddNodeWithID(), SMESHDS_Mesh::AddVolumeWithID(), checkFamilyID(), MED::eHEXA8, MED::eQUAD4, MED::eSEG2, EXCEPTION, SMDS_MeshElement::GetType(), and SMDSAbs_Node.

Referenced by DriverMED_R_SMESHDS_Mesh::Perform().

◆ checkFamilyID()

bool DriverMED::checkFamilyID ( DriverMED_FamilyPtr aFamily,
int  anID,
const TID2FamilyMap myFamilies 
)

Ensure aFamily has a required ID.

Ensure aFamily to have required ID.

Parameters
aFamily- a family to check
anID- an ID aFamily should have
myFamilies- a map of the family ID to the Family
Return values
bool- true if successful
Parameters
aFamily- a family to check and update
anID- an ID aFamily should have
Return values
bool- true if successful

Referenced by buildMeshGrille(), and DriverMED_R_SMESHDS_Mesh::Perform().

◆ FindNode()

◆ GetMedGeoType()

int DriverMED::GetMedGeoType ( SMDSAbs_EntityType  smdsType)

Returns MED element geom type (MED::EGeometrieElement) by SMDS type.

References getMedTypesVec().

Referenced by DriverMED_W_Field::PerformInternal().

◆ getMedTypesVec()

◆ GetSMDSType()

SMDSAbs_EntityType DriverMED::GetSMDSType ( int  medType)

Returns SMDS element geom type by MED type (MED::EGeometrieElement)

References getMedTypesVec().