Version: 8.3.0
SMESH_Mesh Class Reference

#include <SMESH_Mesh.hxx>

Inheritance diagram for SMESH_Mesh:

Data Structures

class  SubMeshHolder
 
struct  TCallUp
 

Public Types

typedef
TopTools_IndexedDataMapOfShapeListOfShape 
TAncestorMap
 Return data map of descendant to ancestor shapes. More...
 
typedef boost::shared_ptr
< SMDS_Iterator< SMESH_Group * > > 
GroupIteratorPtr
 

Public Member Functions

 SMESH_Mesh (int theLocalId, int theStudyId, SMESH_Gen *theGen, bool theIsEmbeddedMode, SMESHDS_Document *theDocument)
 
virtual ~SMESH_Mesh ()
 
void ShapeToMesh (const TopoDS_Shape &aShape)
 Set geometry to be meshed. More...
 
TopoDS_Shape GetShapeToMesh () const
 Return geometry to be meshed. More...
 
bool HasShapeToMesh () const
 Return true if there is a geometry to be meshed, not PseudoShape() More...
 
double GetShapeDiagonalSize () const
 Return diagonal size of bounding box of shape to mesh. More...
 
void Load ()
 Load mesh from study file. More...
 
void Clear ()
 Remove all nodes and elements. More...
 
void ClearSubMesh (const int theShapeId)
 Remove all nodes and elements of indicated shape. More...
 
int UNVToMesh (const char *theFileName)
 consult DriverMED_R_SMESHDS_Mesh::ReadStatus for returned value More...
 
int MEDToMesh (const char *theFileName, const char *theMeshName)
 
std::string STLToMesh (const char *theFileName)
 
int CGNSToMesh (const char *theFileName, const int theMeshIndex, std::string &theMeshName)
 Reads the given mesh from the CGNS file. More...
 
SMESH_ComputeErrorPtr GMFToMesh (const char *theFileName, bool theMakeRequiredGroups=true)
 Fill its data by reading a GMF file. More...
 
SMESH_Hypothesis::Hypothesis_Status AddHypothesis (const TopoDS_Shape &aSubShape, int anHypId, std::string *error=0) throw (SALOME_Exception)
 
SMESH_Hypothesis::Hypothesis_Status RemoveHypothesis (const TopoDS_Shape &aSubShape, int anHypId) throw (SALOME_Exception)
 
const std::list< const
SMESHDS_Hypothesis * > & 
GetHypothesisList (const TopoDS_Shape &aSubShape) const throw (SALOME_Exception)
 
const SMESH_HypothesisGetHypothesis (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const
 
int GetHypotheses (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, std::list< const SMESHDS_Hypothesis * > &aHypList, const bool andAncestors, std::list< TopoDS_Shape > *assignedTo=0) const
 
const SMESH_HypothesisGetHypothesis (const SMESH_subMesh *aSubMesh, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const
 
int GetHypotheses (const SMESH_subMesh *aSubMesh, const SMESH_HypoFilter &aFilter, std::list< const SMESHDS_Hypothesis * > &aHypList, const bool andAncestors, std::list< TopoDS_Shape > *assignedTo=0) const
 
SMESH_HypothesisGetHypothesis (const int aHypID) const
 
const std::list
< SMESHDS_Command * > & 
GetLog () throw (SALOME_Exception)
 
void ClearLog () throw (SALOME_Exception)
 
int GetId () const
 
bool MeshExists (int meshId) const
 Return true if a mesh with given id exists. More...
 
SMESH_MeshFindMesh (int meshId) const
 Return a mesh by id. More...
 
SMESHDS_MeshGetMeshDS ()
 
const SMESHDS_MeshGetMeshDS () const
 
SMESH_GenGetGen ()
 
SMESH_subMeshGetSubMesh (const TopoDS_Shape &aSubShape) throw (SALOME_Exception)
 Get or Create the SMESH_subMesh object implementation. More...
 
SMESH_subMeshGetSubMeshContaining (const TopoDS_Shape &aSubShape) const throw (SALOME_Exception)
 
SMESH_subMeshGetSubMeshContaining (const int aShapeID) const throw (SALOME_Exception)
 
std::list< SMESH_subMesh * > GetGroupSubMeshesContaining (const TopoDS_Shape &shape) const throw (SALOME_Exception)
 Return submeshes of groups containing the given subshape. More...
 
void NotifySubMeshesHypothesisModification (const SMESH_Hypothesis *theChangedHyp)
 Say all submeshes that theChangedHyp has been modified. More...
 
bool IsUsedHypothesis (SMESHDS_Hypothesis *anHyp, const SMESH_subMesh *aSubMesh)
 Return True if anHyp is used to mesh aSubShape. More...
 
bool IsNotConformAllowed () const
 check if a hypothesis allowing notconform mesh is present More...
 
bool IsMainShape (const TopoDS_Shape &theShape) const
 
const TopTools_ListOfShape & GetAncestors (const TopoDS_Shape &theSubShape) const
 Return list of ancestors of theSubShape in the order that lower dimension shapes come first. More...
 
void SetAutoColor (bool theAutoColor) throw (SALOME_Exception)
 Auto color functionality. More...
 
bool GetAutoColor () throw (SALOME_Exception)
 
void SetIsModified (bool isModified)
 Set the flag meaning that the mesh has been edited "manually". More...
 
bool GetIsModified () const
 
bool HasModificationsToDiscard () const
 Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute. More...
 
const TAncestorMapGetAncestorMap () const
 
bool HasDuplicatedGroupNamesMED ()
 Check group names for duplications. More...
 
void ExportMED (const char *theFile, const char *theMeshName=NULL, bool theAutoGroups=true, int theVersion=0, const SMESHDS_Mesh *theMeshPart=0, bool theAutoDimension=false, bool theAddODOnVertices=false, bool theAllElemsToGroup=false) throw (SALOME_Exception)
 
void ExportDAT (const char *file, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception)
 
void ExportUNV (const char *file, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception)
 
void ExportSTL (const char *file, const bool isascii, const char *name=0, const SMESHDS_Mesh *meshPart=0) throw (SALOME_Exception)
 
void ExportCGNS (const char *file, const SMESHDS_Mesh *mesh, const char *meshName=0)
 
void ExportGMF (const char *file, const SMESHDS_Mesh *mesh, bool withRequiredGroups=true)
 
void ExportSAUV (const char *file, const char *theMeshName=NULL, bool theAutoGroups=true) throw (SALOME_Exception)
 
double GetComputeProgress () const
 
int NbNodes () const throw (SALOME_Exception)
 
int Nb0DElements () const throw (SALOME_Exception)
 
int NbBalls () const throw (SALOME_Exception)
 
int NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbBiQuadQuadrangles () const throw (SALOME_Exception)
 
int NbBiQuadTriangles () const throw (SALOME_Exception)
 
int NbPolygons (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbTriQuadraticHexas () const throw (SALOME_Exception)
 
int NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const throw (SALOME_Exception)
 
int NbHexagonalPrisms () const throw (SALOME_Exception)
 
int NbPolyhedrons () const throw (SALOME_Exception)
 
int NbSubMesh () const throw (SALOME_Exception)
 
int NbGroup () const
 
int NbMeshes () const
 Returns number of meshes in the Study, that is supposed to be equal to SMESHDS_Document::NbMeshes() More...
 
SMESH_GroupAddGroup (const SMDSAbs_ElementType theType, const char *theName, int &theId, const TopoDS_Shape &theShape=TopoDS_Shape(), const SMESH_PredicatePtr &thePredicate=SMESH_PredicatePtr())
 
SMESH_GroupAddGroup (SMESHDS_GroupBase *groupDS) throw (SALOME_Exception)
 Creates a group based on an existing SMESHDS group. More...
 
GroupIteratorPtr GetGroups () const
 
std::list< intGetGroupIds () const
 Return IDs of all groups. More...
 
SMESH_GroupGetGroup (const int theGroupID)
 Return a group by ID. More...
 
bool RemoveGroup (const int theGroupID)
 
SMESH_GroupConvertToStandalone (int theGroupID)
 Convert group on geometry into standalone group. More...
 
void SetCallUp (TCallUp *upCaller)
 Set a caller of methods at level of CORBA API implementation. More...
 
bool SynchronizeGroups ()
 Creates SMESH_Groups for not wrapped SMESHDS_Groups. More...
 
SMDSAbs_ElementType GetElementType (const int id, const bool iselem)
 
void ClearMeshOrder ()
 remove submesh order from Mesh More...
 
void SetMeshOrder (const TListOfListOfInt &theOrder)
 remove submesh order from Mesh More...
 
const TListOfListOfIntGetMeshOrder () const
 
bool SortByMeshOrder (std::vector< SMESH_subMesh * > &theListToSort) const
 sort submeshes according to stored mesh order More...
 
bool IsOrderOK (const SMESH_subMesh *smBefore, const SMESH_subMesh *smAfter) const
 Return true if given order of sub-meshes is OK. More...
 
std::ostream & Dump (ostream &save)
 

Static Public Member Functions

static double GetShapeDiagonalSize (const TopoDS_Shape &aShape)
 Return diagonal size of bounding box of a shape. More...
 
static const TopoDS_Solid & PseudoShape ()
 Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set. More...
 

Protected Member Functions

 SMESH_Mesh ()
 Constructor of SMESH_Mesh being a base of some descendant class. More...
 
 SMESH_Mesh (const SMESH_Mesh &)
 

Protected Attributes

int _id
 
int _studyId
 
int _groupId
 
int _nbSubShapes
 
bool _isShapeToMesh
 
SMESHDS_Document_myDocument
 
SMESHDS_Mesh_myMeshDS
 
SMESH_Gen_gen
 
std::map< int, SMESH_Group * > _mapGroup
 
SubMeshHolder_subMeshHolder
 
bool _isAutoColor
 
bool _isModified
 modified since last total re-compute, issue 0020693 More...
 
double _shapeDiagonal
 diagonal size of bounding box of shape to mesh More...
 
TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors
 
std::vector< SMESH_subMesh * > _ancestorSubMeshes
 
TListOfListOfInt _mySubMeshOrder
 
TCallUp_callUp
 

Private Member Functions

void fillAncestorsMap (const TopoDS_Shape &theShape)
 fill _mapAncestors More...
 
void getAncestorsSubMeshes (const TopoDS_Shape &theSubShape, std::vector< SMESH_subMesh * > &theSubMeshes) const
 sort submeshes according to stored mesh order More...
 

Member Typedef Documentation

typedef boost::shared_ptr< SMDS_Iterator<SMESH_Group*> > SMESH_Mesh::GroupIteratorPtr
typedef TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh::TAncestorMap

Return data map of descendant to ancestor shapes.

Constructor & Destructor Documentation

SMESH_Mesh::SMESH_Mesh ( int  theLocalId,
int  theStudyId,
SMESH_Gen theGen,
bool  theIsEmbeddedMode,
SMESHDS_Document theDocument 
)
SMESH_Mesh::~SMESH_Mesh ( )
virtual
SMESH_Mesh::SMESH_Mesh ( )
protected

Constructor of SMESH_Mesh being a base of some descendant class.

References _subMeshHolder.

SMESH_Mesh::SMESH_Mesh ( const SMESH_Mesh )
protected

Member Function Documentation

SMESH_Group* SMESH_Mesh::AddGroup ( const SMDSAbs_ElementType  theType,
const char *  theName,
int theId,
const TopoDS_Shape &  theShape = TopoDS_Shape(),
const SMESH_PredicatePtr thePredicate = SMESH_PredicatePtr() 
)
SMESH_Group * SMESH_Mesh::AddGroup ( SMESHDS_GroupBase groupDS) throw (SALOME_Exception)

Creates a group based on an existing SMESHDS group.

Group ID should be unique

SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh::AddHypothesis ( const TopoDS_Shape &  aSubShape,
int  anHypId,
std::string *  error = 0 
) throw (SALOME_Exception)
int SMESH_Mesh::CGNSToMesh ( const char *  theFileName,
const int  theMeshIndex,
std::string &  theMeshName 
)

Reads the given mesh from the CGNS file.

Parameters
theFileName- name of the file
Return values
int- Driver_Mesh::Status

References Driver_Mesh::DRS_FAIL, Driver_Mesh::GetMeshName(), DriverCGNS_Read::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), and Driver_Mesh::SetMeshId().

void SMESH_Mesh::Clear ( )

Remove all nodes and elements.

Referenced by SMESH_MeshEditor_i::getPreviewMesh().

void SMESH_Mesh::ClearLog ( ) throw (SALOME_Exception)
void SMESH_Mesh::ClearMeshOrder ( )

remove submesh order from Mesh

void SMESH_Mesh::ClearSubMesh ( const int  theShapeId)

Remove all nodes and elements of indicated shape.

References SMESH_subMesh::CHECK_COMPUTE_STATE, and SMESH_subMesh::CLEAN.

SMESH_Group * SMESH_Mesh::ConvertToStandalone ( int  theGroupID)
ostream & SMESH_Mesh::Dump ( ostream &  save)

References ORDER_LINEAR, and ORDER_QUADRATIC.

void SMESH_Mesh::ExportCGNS ( const char *  file,
const SMESHDS_Mesh mesh,
const char *  meshName = 0 
)
void SMESH_Mesh::ExportDAT ( const char *  file,
const SMESHDS_Mesh meshPart = 0 
) throw (SALOME_Exception)
void SMESH_Mesh::ExportGMF ( const char *  file,
const SMESHDS_Mesh mesh,
bool  withRequiredGroups = true 
)
void SMESH_Mesh::ExportMED ( const char *  theFile,
const char *  theMeshName = NULL,
bool  theAutoGroups = true,
int  theVersion = 0,
const SMESHDS_Mesh theMeshPart = 0,
bool  theAutoDimension = false,
bool  theAddODOnVertices = false,
bool  theAllElemsToGroup = false 
) throw (SALOME_Exception)
void SMESH_Mesh::ExportSAUV ( const char *  file,
const char *  theMeshName = NULL,
bool  theAutoGroups = true 
) throw (SALOME_Exception)
void SMESH_Mesh::ExportSTL ( const char *  file,
const bool  isascii,
const char *  name = 0,
const SMESHDS_Mesh meshPart = 0 
) throw (SALOME_Exception)
void SMESH_Mesh::ExportUNV ( const char *  file,
const SMESHDS_Mesh meshPart = 0 
) throw (SALOME_Exception)
void SMESH_Mesh::fillAncestorsMap ( const TopoDS_Shape &  theShape)
private

fill _mapAncestors

SMESH_Mesh * SMESH_Mesh::FindMesh ( int  meshId) const

Return a mesh by id.

const TAncestorMap& SMESH_Mesh::GetAncestorMap ( ) const
const TopTools_ListOfShape & SMESH_Mesh::GetAncestors ( const TopoDS_Shape &  theSubShape) const

Return list of ancestors of theSubShape in the order that lower dimension shapes come first.

Referenced by SMESH_ProxyMesh::GetProxyNode().

void SMESH_Mesh::getAncestorsSubMeshes ( const TopoDS_Shape &  theSubShape,
std::vector< SMESH_subMesh * > &  theSubMeshes 
) const
private

sort submeshes according to stored mesh order

Parameters
theListToSortin out list to be sorted
Returns
FALSE if nothing sorted
bool SMESH_Mesh::GetAutoColor ( ) throw (SALOME_Exception)
double SMESH_Mesh::GetComputeProgress ( ) const
SMDSAbs_ElementType SMESH_Mesh::GetElementType ( const int  id,
const bool  iselem 
)
SMESH_Gen* SMESH_Mesh::GetGen ( )
SMESH_Group * SMESH_Mesh::GetGroup ( const int  theGroupID)

Return a group by ID.

list< int > SMESH_Mesh::GetGroupIds ( ) const

Return IDs of all groups.

GroupIteratorPtr SMESH_Mesh::GetGroups ( ) const
list< SMESH_subMesh * > SMESH_Mesh::GetGroupSubMeshesContaining ( const TopoDS_Shape &  shape) const throw (SALOME_Exception)

Return submeshes of groups containing the given subshape.

Return sub-meshes of groups containing the given sub-shape.

References SMESHDS_SubMesh::IsComplexSubmesh(), and SMESH_MesherHelper::IsSubShape().

int SMESH_Mesh::GetHypotheses ( const TopoDS_Shape &  aSubShape,
const SMESH_HypoFilter aFilter,
std::list< const SMESHDS_Hypothesis * > &  aHypList,
const bool  andAncestors,
std::list< TopoDS_Shape > *  assignedTo = 0 
) const
int SMESH_Mesh::GetHypotheses ( const SMESH_subMesh aSubMesh,
const SMESH_HypoFilter aFilter,
std::list< const SMESHDS_Hypothesis * > &  aHypList,
const bool  andAncestors,
std::list< TopoDS_Shape > *  assignedTo = 0 
) const
const SMESH_Hypothesis* SMESH_Mesh::GetHypothesis ( const TopoDS_Shape &  aSubShape,
const SMESH_HypoFilter aFilter,
const bool  andAncestors,
TopoDS_Shape *  assignedTo = 0 
) const
const SMESH_Hypothesis* SMESH_Mesh::GetHypothesis ( const SMESH_subMesh aSubMesh,
const SMESH_HypoFilter aFilter,
const bool  andAncestors,
TopoDS_Shape *  assignedTo = 0 
) const
SMESH_Hypothesis* SMESH_Mesh::GetHypothesis ( const int  aHypID) const
const std::list<const SMESHDS_Hypothesis * >& SMESH_Mesh::GetHypothesisList ( const TopoDS_Shape &  aSubShape) const throw (SALOME_Exception)
int SMESH_Mesh::GetId ( ) const
bool SMESH_Mesh::GetIsModified ( ) const
const list< SMESHDS_Command * > & SMESH_Mesh::GetLog ( ) throw (SALOME_Exception)
const SMESHDS_Mesh* SMESH_Mesh::GetMeshDS ( ) const
const TListOfListOfInt& SMESH_Mesh::GetMeshOrder ( ) const
double SMESH_Mesh::GetShapeDiagonalSize ( ) const

Return diagonal size of bounding box of shape to mesh.

Referenced by SMESH_Gen_i::GetHypothesisParameterValues().

double SMESH_Mesh::GetShapeDiagonalSize ( const TopoDS_Shape &  aShape)
static

Return diagonal size of bounding box of a shape.

TopoDS_Shape SMESH_Mesh::GetShapeToMesh ( ) const

Return geometry to be meshed.

(It may be a PseudoShape()!)

Referenced by SMESH_ProxyMesh::NbFaces().

SMESH_subMesh * SMESH_Mesh::GetSubMesh ( const TopoDS_Shape &  aSubShape) throw (SALOME_Exception)

Get or Create the SMESH_subMesh object implementation.

Referenced by StdMeshers_UseExisting_2D::Compute(), and StdMeshers_UseExisting_1D::Compute().

SMESH_subMesh* SMESH_Mesh::GetSubMeshContaining ( const TopoDS_Shape &  aSubShape) const throw (SALOME_Exception)
SMESH_subMesh* SMESH_Mesh::GetSubMeshContaining ( const int  aShapeID) const throw (SALOME_Exception)
SMESH_ComputeErrorPtr SMESH_Mesh::GMFToMesh ( const char *  theFileName,
bool  theMakeRequiredGroups = true 
)
bool SMESH_Mesh::HasDuplicatedGroupNamesMED ( )

Check group names for duplications.

Consider maximum group name length stored in MED file

bool SMESH_Mesh::HasModificationsToDiscard ( ) const

Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute.

As a side effect reset _isModified flag if mesh is empty

bool SMESH_Mesh::HasShapeToMesh ( ) const

Return true if there is a geometry to be meshed, not PseudoShape()

Referenced by SMESH_ProxyMesh::GetFaces(), SMESH_ProxyMesh::NbFaces(), and SMESH_ProxyMesh::shapeIndex().

bool SMESH_Mesh::IsMainShape ( const TopoDS_Shape &  theShape) const
bool SMESH_Mesh::IsNotConformAllowed ( ) const

check if a hypothesis allowing notconform mesh is present

References SMESH_HypoFilter::HasName(), MESSAGE, and MYDEBUG.

bool SMESH_Mesh::IsOrderOK ( const SMESH_subMesh smBefore,
const SMESH_subMesh smAfter 
) const

Return true if given order of sub-meshes is OK.

bool SMESH_Mesh::IsUsedHypothesis ( SMESHDS_Hypothesis anHyp,
const SMESH_subMesh aSubMesh 
)

Return True if anHyp is used to mesh aSubShape.

References SMESHDS_Hypothesis::GetType(), and SMESHDS_Hypothesis::PARAM_ALGO.

void SMESH_Mesh::Load ( )

Load mesh from study file.

bool SMESH_Mesh::MeshExists ( int  meshId) const

Return true if a mesh with given id exists.

int SMESH_Mesh::Nb0DElements ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbBalls ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbBiQuadQuadrangles ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbBiQuadTriangles ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbEdges ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbFaces ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbGroup ( ) const
int SMESH_Mesh::NbHexagonalPrisms ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbHexas ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbMeshes ( ) const

Returns number of meshes in the Study, that is supposed to be equal to SMESHDS_Document::NbMeshes()

int SMESH_Mesh::NbNodes ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbPolygons ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbPolyhedrons ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbPrisms ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbPyramids ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbQuadrangles ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbSubMesh ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbTetras ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbTriangles ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
int SMESH_Mesh::NbTriQuadraticHexas ( ) const throw (SALOME_Exception)
int SMESH_Mesh::NbVolumes ( SMDSAbs_ElementOrder  order = ORDER_ANY) const throw (SALOME_Exception)
void SMESH_Mesh::NotifySubMeshesHypothesisModification ( const SMESH_Hypothesis theChangedHyp)
const TopoDS_Solid & SMESH_Mesh::PseudoShape ( )
static
bool SMESH_Mesh::RemoveGroup ( const int  theGroupID)
void SMESH_Mesh::SetAutoColor ( bool  theAutoColor) throw (SALOME_Exception)

Auto color functionality.

void SMESH_Mesh::SetCallUp ( TCallUp upCaller)

Set a caller of methods at level of CORBA API implementation.

The set upCaller will be deleted by SMESH_Mesh

void SMESH_Mesh::SetIsModified ( bool  isModified)

Set the flag meaning that the mesh has been edited "manually".

It is to set to false after Clear() and to set to true by MeshEditor

void SMESH_Mesh::SetMeshOrder ( const TListOfListOfInt theOrder)

remove submesh order from Mesh

void SMESH_Mesh::ShapeToMesh ( const TopoDS_Shape &  aShape)

Set geometry to be meshed.

References MESSAGE, and MYDEBUG.

bool SMESH_Mesh::SortByMeshOrder ( std::vector< SMESH_subMesh * > &  theListToSort) const

sort submeshes according to stored mesh order

Parameters
theListToSortin out list to be sorted
Returns
FALSE if nothing sorted

References SMESHDS_SubMesh::GetID().

bool SMESH_Mesh::SynchronizeGroups ( )

Creates SMESH_Groups for not wrapped SMESHDS_Groups.

Return values
bool- true if new SMESH_Groups have been created

References SMESHDS_GroupBase::GetID().

Field Documentation

std::vector<SMESH_subMesh*> SMESH_Mesh::_ancestorSubMeshes
mutableprotected
TCallUp* SMESH_Mesh::_callUp
protected

Referenced by SMESH_Mesh().

SMESH_Gen* SMESH_Mesh::_gen
protected

Referenced by SMESH_Mesh().

int SMESH_Mesh::_groupId
protected
int SMESH_Mesh::_id
protected

Referenced by SMESH_Mesh().

bool SMESH_Mesh::_isAutoColor
protected

Referenced by SMESH_Mesh().

bool SMESH_Mesh::_isModified
protected

modified since last total re-compute, issue 0020693

Referenced by SMESH_Mesh().

bool SMESH_Mesh::_isShapeToMesh
protected

Referenced by SMESH_Mesh().

TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh::_mapAncestors
protected
std::map<int, SMESH_Group*> SMESH_Mesh::_mapGroup
protected
SMESHDS_Document* SMESH_Mesh::_myDocument
protected

Referenced by SMESH_Mesh().

SMESHDS_Mesh* SMESH_Mesh::_myMeshDS
protected

Referenced by SMESH_Mesh().

TListOfListOfInt SMESH_Mesh::_mySubMeshOrder
protected
int SMESH_Mesh::_nbSubShapes
protected
double SMESH_Mesh::_shapeDiagonal
protected

diagonal size of bounding box of shape to mesh

Referenced by SMESH_Mesh().

int SMESH_Mesh::_studyId
protected

Referenced by SMESH_Mesh().

SubMeshHolder* SMESH_Mesh::_subMeshHolder
protected

Referenced by SMESH_Mesh().