Version: 9.12.0
MeshEditor_I::TPreviewMesh Struct Reference

Mesh to apply modifications for preview purposes. More...

Inheritance diagram for MeshEditor_I::TPreviewMesh:

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

 TPreviewMesh (SMDSAbs_ElementType previewElements=SMDSAbs_All)
 < Constructor More...
 
void Copy (const TIDSortedElemSet &theElements, TIDSortedElemSet &theCopyElements, SMDSAbs_ElementType theSelectType=SMDSAbs_All, SMDSAbs_ElementType theAvoidType=SMDSAbs_All)
 Copy an element. More...
 
SMDS_MeshElementCopy (const SMDS_MeshElement *anElem)
 Copy a node. More...
 
SMDS_MeshNodeCopy (const SMDS_MeshNode *anElemNode)
 
void RemoveAll ()
 
void Remove (SMDSAbs_ElementType type)
 
void Remove (SMDS_ElemIteratorPtr eIt)
 
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...
 
void UndefShapeToMesh ()
 
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)
 
SMESH_Hypothesis::Hypothesis_Status RemoveHypothesis (const TopoDS_Shape &aSubShape, int anHypId)
 
const std::list< const SMESHDS_Hypothesis * > & GetHypothesisList (const TopoDS_Shape &aSubShape) const
 
const SMESH_HypothesisGetHypothesis (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const
 Return the hypothesis assigned to the shape. More...
 
const SMESH_HypothesisGetHypothesis (const SMESH_subMesh *aSubMesh, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const
 Return the hypothesis assigned to the shape of a sub-mesh. More...
 
SMESH_HypothesisGetHypothesis (const int aHypID) const
 Return a hypothesis by its ID. More...
 
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
 Return hypotheses assigned to the shape. More...
 
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
 Return hypotheses assigned to the shape of a sub-mesh. More...
 
const std::list< SMESHDS_Command * > & GetLog ()
 
void ClearLog ()
 
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)
 Get or Create the SMESH_subMesh object implementation. More...
 
SMESH_subMeshGetSubMeshContaining (const TopoDS_Shape &aSubShape) const
 Get the SMESH_subMesh object implementation. More...
 
SMESH_subMeshGetSubMeshContaining (const int aShapeID) const
 Get the SMESH_subMesh object implementation. More...
 
std::list< SMESH_subMesh * > GetGroupSubMeshesContaining (const TopoDS_Shape &shape) const
 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
 
TopoDS_Shape GetShapeByEntry (const std::string &entry) 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)
 Auto color functionality. More...
 
bool GetAutoColor ()
 
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...
 
bool IsComputedOK ()
 Return true if all sub-meshes are computed OK - to update an icon. More...
 
const TAncestorMapGetAncestorMap () const
 
bool HasDuplicatedGroupNamesMED ()
 Check group names for duplications. More...
 
MEDCoupling::MCAuto< MEDCoupling::DataArrayByte > ExportMEDCoupling (const char *theMeshName=NULL, bool theAutoGroups=true, const SMESHDS_Mesh *theMeshPart=0, bool theAutoDimension=false, bool theAddODOnVertices=false, double theZTolerance=-1., bool theSaveNumbers=true)
 Same as SMESH_Mesh::ExportMED except for file and theVersion. More...
 
void ExportMED (const char *theFile, const char *theMeshName=NULL, bool theAutoGroups=true, int theVersion=-1, const SMESHDS_Mesh *theMeshPart=0, bool theAutoDimension=false, bool theAddODOnVertices=false, double theZTolerance=-1., bool theSaveNumbers=true)
 Export the mesh to a med file. More...
 
void ExportDAT (const char *file, const SMESHDS_Mesh *meshPart=0, const bool renumber=true)
 Export the mesh to a DAT file. More...
 
void ExportUNV (const char *file, const SMESHDS_Mesh *meshPart=0, const bool renumber=true)
 Export the mesh to an UNV file. More...
 
void ExportSTL (const char *file, const bool isascii, const char *name=0, const SMESHDS_Mesh *meshPart=0)
 Export the mesh to an STL file. More...
 
void ExportCGNS (const char *file, const SMESHDS_Mesh *mesh, const char *meshName=0, const bool groupElemsByType=false)
 Export the mesh to the CGNS file. More...
 
void ExportGMF (const char *file, const SMESHDS_Mesh *mesh, bool withRequiredGroups=true)
 Export the mesh to a GMF file. More...
 
double GetComputeProgress () const
 Return a ratio of "compute cost" of computed sub-meshes to the whole "compute cost". More...
 
smIdType NbNodes () const
 Return number of nodes in the mesh. More...
 
smIdType Nb0DElements () const
 Return number of edges of given order in the mesh. More...
 
smIdType NbBalls () const
 Return number of ball elements in the mesh. More...
 
smIdType NbEdges (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of edges of given order in the mesh. More...
 
smIdType NbFaces (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of faces of given order in the mesh. More...
 
smIdType NbTriangles (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return the number of faces in the mesh. More...
 
smIdType NbQuadrangles (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return the number nodes faces in the mesh. More...
 
smIdType NbBiQuadQuadrangles () const
 Return number of biquadratic quadrangles in the mesh. More...
 
smIdType NbBiQuadTriangles () const
 Return number of biquadratic triangles in the mesh. More...
 
smIdType NbPolygons (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return the number of polygonal faces in the mesh. More...
 
smIdType NbVolumes (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of volumes of given order in the mesh. More...
 
smIdType NbTetras (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of tetrahedrons of given order in the mesh. More...
 
smIdType NbHexas (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of hexahedrons of given order in the mesh. More...
 
smIdType NbTriQuadraticHexas () const
 Return number of triquadratic hexahedrons in the mesh. More...
 
smIdType NbPyramids (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of pyramids of given order in the mesh. More...
 
smIdType NbPrisms (SMDSAbs_ElementOrder order=ORDER_ANY) const
 Return number of prisms (penthahedrons) of given order in the mesh. More...
 
smIdType NbQuadPrisms () const
 
smIdType NbBiQuadPrisms () const
 
smIdType NbHexagonalPrisms () const
 Return number of hexagonal prisms in the mesh. More...
 
smIdType NbPolyhedrons () const
 Return number of polyhedrons in the mesh. More...
 
smIdType NbSubMesh () const
 Return number of submeshes in the mesh. More...
 
size_t 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, const int theId=-1, const TopoDS_Shape &theShape=TopoDS_Shape(), const SMESH_PredicatePtr &thePredicate=SMESH_PredicatePtr())
 
SMESH_GroupAddGroup (SMESHDS_GroupBase *groupDS)
 Creates a group based on an existing SMESHDS group. More...
 
GroupIteratorPtr GetGroups () const
 Return iterator on all existing groups. More...
 
std::list< int > GetGroupIds () const
 Return IDs of all groups. More...
 
SMESH_GroupGetGroup (const int theGroupID) const
 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 smIdType 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
 return submesh order if any More...
 
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 (std::ostream &save)
 
virtual void Lock ()
 
virtual void Unlock ()
 
virtual void wait ()
 
virtual bool IsParallel ()
 
virtual bool ComputeSubMeshes (SMESH_Gen *gen, SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const ::MeshDimension aDim, TSetOfInt *aShapesId, TopTools_IndexedMapOfShape *allowedSubShapes, SMESH_subMesh::compute_event &computeEvent, const bool includeSelf, const bool complexShapeFirst, const bool aShapeOnly)
 

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...
 

Data Fields

SMDSAbs_ElementType myPreviewType
 

Protected Attributes

int _id
 
int _groupId
 
int _nbSubShapes
 
bool _isShapeToMesh
 
SMESHDS_Document_document
 
SMESHDS_Mesh_meshDS
 
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 _subMeshOrder
 
TCallUp_callUp
 

Private Member Functions

void exportMEDCommmon (DriverMED_W_SMESHDS_Mesh &myWriter, const char *theMeshName, bool theAutoGroups, const SMESHDS_Mesh *meshPart, bool theAutoDimension, bool theAddODOnVertices, double theZTolerance, bool theSaveNumbers)
 Export the mesh to a writer. More...
 
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...
 

Detailed Description

Mesh to apply modifications for preview purposes.

Member Typedef Documentation

◆ GroupIteratorPtr

typedef boost::shared_ptr< SMDS_Iterator<SMESH_Group*> > SMESH_Mesh::GroupIteratorPtr
inherited

◆ TAncestorMap

typedef TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh::TAncestorMap
inherited

Return data map of descendant to ancestor shapes.

Constructor & Destructor Documentation

◆ TPreviewMesh()

MeshEditor_I::TPreviewMesh::TPreviewMesh ( SMDSAbs_ElementType  previewElements = SMDSAbs_All)

< Constructor

Copy a set of elements

Member Function Documentation

◆ AddGroup() [1/2]

◆ AddGroup() [2/2]

SMESH_Group * SMESH_Mesh::AddGroup ( SMESHDS_GroupBase groupDS)
inherited

Creates a group based on an existing SMESHDS group.

Group ID should be unique

References SMESH_Mesh::_groupId, SMESH_Mesh::_mapGroup, SMESHDS_Mesh::AddGroup(), SMESH_Group::GetGroupDS(), SMESHDS_GroupBase::GetID(), and SMESH_Mesh::GetMeshDS().

◆ AddHypothesis()

◆ CGNSToMesh()

int SMESH_Mesh::CGNSToMesh ( const char *  theFileName,
const int  theMeshIndex,
std::string &  theMeshName 
)
inherited

◆ Clear()

◆ ClearLog()

void SMESH_Mesh::ClearLog ( )
inherited

◆ ClearMeshOrder()

void SMESH_Mesh::ClearMeshOrder ( )
inherited

remove submesh order from Mesh

References SMESH_Mesh::_subMeshOrder.

◆ ClearSubMesh()

void SMESH_Mesh::ClearSubMesh ( const int  theShapeId)
inherited

Remove all nodes and elements of indicated shape.

References SMESH_subMesh::CHECK_COMPUTE_STATE, SMESH_subMesh::CLEAN, and SMESH_Mesh::GetSubMeshContaining().

Referenced by SMESH_Mesh_i::ClearSubMesh().

◆ ComputeSubMeshes()

virtual bool SMESH_Mesh::ComputeSubMeshes ( SMESH_Gen gen,
SMESH_Mesh aMesh,
const TopoDS_Shape &  aShape,
const ::MeshDimension  aDim,
TSetOfInt aShapesId,
TopTools_IndexedMapOfShape *  allowedSubShapes,
SMESH_subMesh::compute_event computeEvent,
const bool  includeSelf,
const bool  complexShapeFirst,
const bool  aShapeOnly 
)
virtualinherited

Reimplemented in SMESH_SequentialMesh, and SMESH_ParallelMesh.

◆ ConvertToStandalone()

◆ Copy() [1/3]

◆ Copy() [2/3]

SMDS_MeshNode* MeshEditor_I::TPreviewMesh::Copy ( const SMDS_MeshNode anElemNode)

◆ Copy() [3/3]

◆ Dump()

std::ostream& SMESH_Mesh::Dump ( std::ostream &  save)
inherited

Referenced by SMESH_Mesh_i::Dump().

◆ ExportCGNS()

◆ ExportDAT()

◆ ExportGMF()

void SMESH_Mesh::ExportGMF ( const char *  file,
const SMESHDS_Mesh mesh,
bool  withRequiredGroups = true 
)
inherited

◆ ExportMED()

void SMESH_Mesh::ExportMED ( const char *  theFile,
const char *  theMeshName = NULL,
bool  theAutoGroups = true,
int  theVersion = -1,
const SMESHDS_Mesh theMeshPart = 0,
bool  theAutoDimension = false,
bool  theAddODOnVertices = false,
double  theZTolerance = -1.,
bool  theSaveNumbers = true 
)
inherited

Export the mesh to a med file.

Parameters
[in]theFile- name of the MED file
[in]theMeshName- name of this mesh
[in]theAutoGroups- boolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... ; the typical use is auto_groups=false.
[in]theVersion- define the minor (xy, where version is x.y.z) of MED file format. If theVersion is equal to -1, the minor version is not changed (default).
[in]theMeshPart- mesh data to export
[in]theAutoDimension- if true, a space dimension of a MED mesh can be either
  • 1D if all mesh nodes lie on OX coordinate axis, or
  • 2D if all mesh nodes lie on XOY coordinate plane, or
  • 3D in the rest cases. If theAutoDimension is false, the space dimension is always 3.
[in]theAddODOnVertices- to create 0D elements on all vertices
[in]theZTolerance- tolerance in Z direction. If Z coordinate of a node is close to zero within a given tolerance, the coordinate is set to zero. If ZTolerance is negative, the node coordinates are kept as is.
[in]theSaveNumbers: enable saving numbers of nodes and cells.
Returns
int - mesh index in the file

References SMESH_Mesh::exportMEDCommmon(), MESSAGE, and DriverMED_W_SMESHDS_Mesh::SetFile().

Referenced by SMESH_Mesh_i::ExportMED(), SMESH_DriverMesh::exportMesh(), and MEDFileSpeCls::exportTo().

◆ exportMEDCommmon()

◆ ExportMEDCoupling()

MEDCoupling::MCAuto< MEDCoupling::DataArrayByte > SMESH_Mesh::ExportMEDCoupling ( const char *  theMeshName = NULL,
bool  theAutoGroups = true,
const SMESHDS_Mesh theMeshPart = 0,
bool  theAutoDimension = false,
bool  theAddODOnVertices = false,
double  theZTolerance = -1.,
bool  theSaveNumbers = true 
)
inherited

◆ ExportSTL()

◆ ExportUNV()

◆ fillAncestorsMap()

void SMESH_Mesh::fillAncestorsMap ( const TopoDS_Shape &  theShape)
privateinherited

◆ FindMesh()

SMESH_Mesh * SMESH_Mesh::FindMesh ( int  meshId) const
inherited

◆ GetAncestorMap()

const TAncestorMap& SMESH_Mesh::GetAncestorMap ( ) const
inherited

◆ GetAncestors()

◆ getAncestorsSubMeshes()

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

sort submeshes according to stored mesh order

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

References SMESH_Mesh::GetAncestors(), SMESH_Mesh::GetSubMeshContaining(), and SMESH_Mesh::SortByMeshOrder().

◆ GetAutoColor()

bool SMESH_Mesh::GetAutoColor ( )
inherited

◆ GetComputeProgress()

◆ GetElementType()

SMDSAbs_ElementType SMESH_Mesh::GetElementType ( const smIdType  id,
const bool  iselem 
)
inherited

◆ GetGen()

◆ GetGroup()

SMESH_Group * SMESH_Mesh::GetGroup ( const int  theGroupID) const
inherited

◆ GetGroupIds()

std::list< int > SMESH_Mesh::GetGroupIds ( ) const
inherited

◆ GetGroups()

◆ GetGroupSubMeshesContaining()

std::list< SMESH_subMesh * > SMESH_Mesh::GetGroupSubMeshesContaining ( const TopoDS_Shape &  shape) const
inherited

◆ GetHypotheses() [1/2]

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
inherited

Return hypotheses assigned to the shape of a sub-mesh.

Parameters
aSubShape- the sub-mesh to check
aFilter- the hypothesis filter
aHypList- the list of the found hypotheses
andAncestors- flag to check hypos assigned to ancestors of the shape
Return values
int- number of unique hypos in aHypList

References SMESH_Mesh::_meshDS, cSMESH_Hyp, SMESH_subMesh::GetAncestors(), SMESHDS_Mesh::GetHypothesis(), SMESHDS_Hypothesis::GetName(), SMESH_subMesh::GetSubShape(), SMESH_Hypothesis::IsAuxiliary(), SMESH_HypoFilter::IsOk(), and SMESH_Mesh::SortByMeshOrder().

◆ GetHypotheses() [2/2]

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
inherited

Return hypotheses assigned to the shape.

Parameters
aSubShape- the shape to check
aFilter- the hypothesis filter
aHypList- the list of the found hypotheses
andAncestors- flag to check hypos assigned to ancestors of the shape
Return values
int- number of unique hypos in aHypList

References SMESH_Mesh::GetSubMesh().

Referenced by StdMeshers_Regular_1D::CheckHypothesis(), VISCOUS_2D::findHyps(), SMESH_Algo::GetUsedHypothesis(), StdMeshers_Regular_1D::GetUsedHypothesis(), SMESH_Mesh::IsUsedHypothesis(), StdMeshers_ProjectionUtils::MakeComputed(), and SMESH_Mesh::NotifySubMeshesHypothesisModification().

◆ GetHypothesis() [1/3]

SMESH_Hypothesis * SMESH_Mesh::GetHypothesis ( const int  aHypID) const
inherited

Return a hypothesis by its ID.

References SMESH_Mesh::_gen, SMESH_Gen::GetStudyContext(), and studyContextStruct::mapHypothesis.

◆ GetHypothesis() [2/3]

const SMESH_Hypothesis * SMESH_Mesh::GetHypothesis ( const SMESH_subMesh aSubMesh,
const SMESH_HypoFilter aFilter,
const bool  andAncestors,
TopoDS_Shape *  assignedTo = 0 
) const
inherited

Return the hypothesis assigned to the shape of a sub-mesh.

Parameters
aSubMesh- the sub-mesh to check
aFilter- the hypothesis filter
andAncestors- flag to check hypos assigned to ancestors of the shape
assignedTo- to return the shape the found hypo is assigned to
Return values
SMESH_Hypothesis*- the first hypo passed through aFilter

References SMESH_Mesh::_meshDS, cSMESH_Hyp, SMESH_subMesh::GetAncestors(), SMESHDS_Mesh::GetHypothesis(), SMESH_subMesh::GetSubShape(), SMESH_HypoFilter::IsOk(), and SMESH_Mesh::SortByMeshOrder().

◆ GetHypothesis() [3/3]

const SMESH_Hypothesis * SMESH_Mesh::GetHypothesis ( const TopoDS_Shape &  aSubShape,
const SMESH_HypoFilter aFilter,
const bool  andAncestors,
TopoDS_Shape *  assignedTo = 0 
) const
inherited

Return the hypothesis assigned to the shape.

Parameters
aSubShape- the shape to check
aFilter- the hypothesis filter
andAncestors- flag to check hypos assigned to ancestors of the shape
assignedTo- to return the shape the found hypo is assigned to
Return values
SMESH_Hypothesis*- the first hypo passed through aFilter

References SMESH_Mesh::GetSubMesh().

Referenced by SMESH_Mesh::AddHypothesis(), StdMeshers_CompositeHexa_3D::Compute(), StdMeshers_RadialQuadrangle_1D2D::computeLayerPositions(), SMESH_Gen::GetAlgo(), TNodeDistributor::GetDistributor(), StdMeshers_Quadrangle_2D::getEnforcedUV(), SMESH_MesherHelper::GetShapeOfHypothesis(), StdMeshers_Regular_1D::getVertexHyp(), SMESH_Gen::IsGlobalHypothesis(), SMESH_Mesh::IsNotConformAllowed(), StdMeshers_ProjectionUtils::SourceNotComputedError(), and SMESH_Mesh_i::~SMESH_Mesh_i().

◆ GetHypothesisList()

const std::list< const SMESHDS_Hypothesis * > & SMESH_Mesh::GetHypothesisList ( const TopoDS_Shape &  aSubShape) const
inherited

◆ GetId()

◆ GetIsModified()

bool SMESH_Mesh::GetIsModified ( ) const
inherited

Referenced by SMESH_Gen_i::Save().

◆ GetLog()

const std::list< SMESHDS_Command * > & SMESH_Mesh::GetLog ( )
inherited

◆ GetMeshDS() [1/2]

SMESHDS_Mesh* SMESH_Mesh::GetMeshDS ( )
inherited

Referenced by SMESH_Gen_i::_GetInside(), SMESH_Mesh::AddGroup(), SMESH_Mesh::AddHypothesis(), SMESH_Mesh_i::addHypothesis(), SMESH_Gen_i::AddHypothesisToShape(), SMESH_MeshEditor_i::AddNodeOnSegment(), StdMeshers_RenumberHelper::AddReplacingNode(), SMESH_Pattern_i::ApplyToHexahedrons(), SMESH_Pattern_i::ApplyToMeshFaces(), SMESH_Mesh_i::BaryCenter(), checkConformIgnoredAlgos(), StdMeshers_Cartesian_VL::ViscousBuilder::CheckGeometryMaps(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), StdMeshers_Quadrangle_2D::checkNbEdgesForEvaluate(), cleanSubMesh(), SMESH_Mesh::Clear(), SMESH_Mesh_i::ClearSubMesh(), clearSubMesh(), SMESH_Gen_i::Compute(), StdMeshers_CompositeSegment_1D::Compute(), StdMeshers_Hexa_3D::Compute(), StdMeshers_Import_1D::Compute(), StdMeshers_Import_1D2D::Compute(), StdMeshers_PolyhedronPerSolid_3D::Compute(), StdMeshers_Prism_3D::Compute(), StdMeshers_Projection_1D::Compute(), StdMeshers_Projection_1D2D::Compute(), StdMeshers_Projection_2D::Compute(), StdMeshers_Projection_3D::Compute(), StdMeshers_RadialPrism_3D::Compute(), StdMeshers_Regular_1D::Compute(), StdMeshers_QuadToTriaAdaptor::Compute(), StdMeshers_QuadToTriaAdaptor::Compute2ndPart(), StdMeshers_Regular_1D::computeInternalParameters(), StdMeshers_Quadrangle_2D::computeQuadDominant(), StdMeshers_Quadrangle_2D::computeQuadPref(), StdMeshers_Quadrangle_2D::computeReduced(), SMESH_Gen_i::ConcatenateCommon(), SMESH_Mesh::ConvertToStandalone(), SMESH_Gen_i::CopyMesh(), SMESH_Gen_i::CopyMeshWithGeom(), SMESH_Mesh_i::CreateDimGroup(), SMESH_Gen_i::CreateDualMesh(), SMESH_Pattern::createElements(), SMESH_MeshEditor::CreateFlatElementsOnFacesGroups(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_Gen_i::CreateMeshesFromCGNS(), SMESH_Gen_i::CreateMeshesFromGMF(), SMESH_Gen_i::CreateMeshesFromMED(), SMESH_Gen_i::CreateMeshesFromSTL(), SMESH_Gen_i::CreateMeshesFromUNV(), StdMeshers_Penta_3D::CreateNode(), SMESH_MeshEditor_i::declareMeshModified(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), SMESH_Mesh_i::ElemNbEdges(), SMESH_Mesh_i::ElemNbFaces(), StdMeshers_Projection_1D::Evaluate(), SMESH_Mesh_i::ExportPartToMEDCommon(), SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), SMESH_MeshEditor::ExtrusionAlongTrack(), SMESH_Mesh_i::FaceGroupsSeparatedByEdges(), SMESH_MeshEditor_i::FillHole(), StdMeshers_CompositeHexa_3D::findBoxFaces(), SMESH_Mesh_i::FindElementByNodes(), SMESH_Pattern::findExistingNodes(), SMESH_Gen_i::FindGeometryByMeshElement(), StdMeshers_ProjectionUtils::FindMatchingNodesOnFaces(), StdMeshers_Penta_3D::FindNodeOnShape(), SMESH_MeshEditor_i::FindSharpEdges(), StdMeshers_ProjectionUtils::FindSubShapeAssociation(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_MeshEditor::generateGroups(), SMESH_Gen::GetAlgoState(), SMESH_Mesh_i::GetBallDiameter(), SMESH_Gen_i::GetComputeErrors(), StdMeshers_PrismAsBlock::TSideFace::GetEdge(), StdMeshers_FaceSide::GetEdgeNodes(), SMESH_Mesh_i::GetElementGeomType(), SMESH_Mesh_i::GetElementPosition(), SMESH_Mesh_i::GetElements(), SMESH_Mesh_i::GetElementsByNodes(), SMESH_Mesh_i::GetElementsByType(), SMESH_Mesh_i::GetElementShape(), SMESH_Mesh_i::GetElementsId(), SMESH_Mesh_i::GetElemFaceNodes(), SMESH_Mesh_i::GetElemNbNodes(), SMESH_Mesh_i::GetElemNode(), SMESH_Mesh_i::GetElemNodes(), SMESH_Mesh_i::GetFaceNormal(), StdMeshers_CompositeSegment_1D::GetFaceSide(), StdMeshers_FaceSide::GetFaceWires(), SMESH_MeshEditor::GetHexaFacetsToSplit(), SMESH_Hypothesis::GetMeshByPersistentID(), SMESH_MeshEditor::GetMeshDS(), SMESH_MesherHelper::GetMeshDS(), SMESH_ProxyMesh::GetMeshDS(), SMESH_Mesh_i::GetMeshInfo(), SMESH_Mesh_i::GetMeshOrder(), SMESH_Gen_i::GetMeshOrSubmeshByShape(), SMESH_Mesh_i::GetNbElementsByType(), SMESH_Mesh_i::GetNodeInverseElements(), SMESH_Mesh_i::GetNodePosition(), SMESH_Mesh_i::GetNodesId(), SMESH_Mesh_i::GetNodeXYZ(), VISCOUS_3D::_SolidData::GetShapeEdges(), SMESH_Mesh_i::GetShapeID(), SMESH_Mesh_i::GetShapeIDForElem(), SMESH_Mesh_i::GetShapeToMesh(), SMESH_Gen_i::GetSoleSubMeshUsingHyp(), StdMeshers_ImportSource1D::GetSourceMeshes(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), SMESH_Mesh_i::GetSubMesh(), SMESH_Pattern::getSubmeshWithElements(), SMESH_Mesh_i::GetVtkUgStream(), StdMeshers_Import_1D::importMesh(), SMESH_Gen::IsGlobalHypothesis(), SMESH_Mesh_i::IsMediumNode(), SMESH_Mesh_i::IsMediumNodeOfAnyElem(), SMESH_Mesh_i::IsPoly(), SMESH_Mesh_i::IsQuadratic(), SMESH_MesherHelper::IsStructured(), SMESH_MesherHelper::IsSubShape(), StdMeshers_QuadToTriaAdaptor::LimitHeight(), SMESH_Gen_i::Load(), SMESH_Pattern::Load(), StdMeshers_Penta_3D::MakeBlock(), SMESH_MeshEditor_i::MakeBoundaryElements(), SMESH_MeshEditor_i::MakeBoundaryMesh(), SMESH_Pattern_i::MakeMesh(), SMESH_Pattern::MakeMesh(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), StdMeshers_Penta_3D::MakeNodes(), StdMeshers_Cartesian_VL::ViscousBuilder::MakeOffsetSolid(), SMESH_MeshEditor_i::MakePolyLine(), StdMeshers_Cartesian_VL::ViscousBuilder::MakeViscousLayers(), StdMeshers_Penta_3D::MakeVolumeMesh(), MeshPtr2SMDSMesh(), SMESH_MeshEditor_i::mirror(), SMESH_MeshEditor_i::MoveClosestNodeToPoint(), SMESH_MeshEditor_i::MoveNode(), SMESH_Mesh_i::newGroupShape(), SMESH_Mesh::NotifySubMeshesHypothesisModification(), SMESH_MeshEditor_i::Offset(), SMESH_MeshEditor::Offset(), SMESH_Gen::parallelComputeSubMeshes(), SMESH_PreMeshInfo::readSubMeshes(), SMESH_PreMeshInfo::readSubMeshInfo(), SMESH_Mesh::RemoveGroup(), SMESH_Mesh_i::RemoveGroupWithContents(), SMESH_Mesh::RemoveHypothesis(), SMESH_MeshEditor_i::RemoveNodeWithReconnection(), SMESH_Mesh_i::ReplaceShape(), StdMeshers_ViscousLayers2D::RestoreListeners(), SMESH_MeshEditor_i::rotate(), SMESH_Gen_i::Save(), SMESH_PreMeshInfo::SaveToFile(), SMESH_MeshEditor_i::scale(), StdMeshers_Adaptive1D::SetParametersByMesh(), StdMeshers_Geometric1D::SetParametersByMesh(), SMESH_Client::SMESH_Client(), SMESH_MeshPartDS::SMESH_MeshPartDS(), StdMeshers_FaceSide::StdMeshers_FaceSide(), SMESH_MeshEditor::Transform(), SMESH_MeshEditor_i::translate(), SMESH_Algo::VertexNode(), StdMeshers_Cartesian_VL::ViscousBuilder::ViscousBuilder(), and SMESH_Mesh_i::~SMESH_Mesh_i().

◆ GetMeshDS() [2/2]

const SMESHDS_Mesh* SMESH_Mesh::GetMeshDS ( ) const
inherited

◆ GetMeshOrder()

const TListOfListOfInt & SMESH_Mesh::GetMeshOrder ( ) const
inherited

◆ GetShapeByEntry()

TopoDS_Shape SMESH_Mesh::GetShapeByEntry ( const std::string &  entry) const
inherited

◆ GetShapeDiagonalSize() [1/2]

double SMESH_Mesh::GetShapeDiagonalSize ( ) const
inherited

◆ GetShapeDiagonalSize() [2/2]

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

Return diagonal size of bounding box of a shape.

References SMESHUtils::Add(), and OCC_CATCH_SIGNALS.

◆ GetShapeToMesh()

◆ GetSubMesh()

SMESH_subMesh * SMESH_Mesh::GetSubMesh ( const TopoDS_Shape &  aSubShape)
inherited

Get or Create the SMESH_subMesh object implementation.

References SMESH_Mesh::_meshDS, SMESH_Mesh::_nbSubShapes, SMESH_Mesh::_subMeshHolder, SMESHDS_TSubMeshHolder< SUBMESH >::Add(), SMESHDS_Mesh::AddCompoundSubmesh(), SMESH_Mesh::fillAncestorsMap(), SMESHDS_TSubMeshHolder< SUBMESH >::Get(), SMESH_subMesh::getDependsOnIterator(), SMESHDS_Mesh::IndexToShape(), and SMESHDS_Mesh::ShapeToIndex().

Referenced by SMESH_Mesh::AddHypothesis(), StdMeshers_Prism_3D::assocOrProjBottom2Top(), StdMeshers_Quadrangle_2D::check(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), StdMeshers_Import_1D::CheckHypothesis(), StdMeshers_Quadrangle_2D::checkNbEdgesForEvaluate(), StdMeshers_Prism_3D::compute(), StdMeshers_CompositeSegment_1D::Compute(), StdMeshers_Import_1D2D::Compute(), StdMeshers_PolyhedronPerSolid_3D::Compute(), StdMeshers_Prism_3D::Compute(), StdMeshers_Projection_1D::Compute(), StdMeshers_Projection_1D2D::Compute(), StdMeshers_Projection_2D::Compute(), StdMeshers_Projection_3D::Compute(), StdMeshers_Quadrangle_2D::Compute(), StdMeshers_RadialQuadrangle_1D2D::Compute(), StdMeshers_UseExisting_2D::Compute(), StdMeshers_UseExisting_1D::Compute(), StdMeshers_ViscousLayers2D::Compute(), StdMeshers_ViscousLayers::Compute(), StdMeshers_Prism_3D::computeBase(), StdMeshers_RadialQuadrangle_1D2D::computeLayerPositions(), ComputePentahedralMesh(), StdMeshers_Quadrangle_2D::computeQuadDominant(), StdMeshers_Prism_3D::computeWalls(), SMESH_Pattern::createElements(), SMESH_Mesh_i::createSubMesh(), VISCOUS_2D::_ViscousBuilder2D::error(), StdMeshers_CompositeHexa_3D::Evaluate(), StdMeshers_Hexa_3D::Evaluate(), StdMeshers_HexaFromSkin_3D::Evaluate(), StdMeshers_Import_1D::Evaluate(), StdMeshers_Import_1D2D::Evaluate(), StdMeshers_Penta_3D::Evaluate(), StdMeshers_PolygonPerFace_2D::Evaluate(), StdMeshers_PolyhedronPerSolid_3D::Evaluate(), StdMeshers_Prism_3D::Evaluate(), StdMeshers_Projection_1D::Evaluate(), StdMeshers_Projection_1D2D::Evaluate(), StdMeshers_Projection_2D::Evaluate(), StdMeshers_Projection_3D::Evaluate(), StdMeshers_Quadrangle_2D::Evaluate(), StdMeshers_RadialPrism_3D::Evaluate(), StdMeshers_RadialQuadrangle_1D2D::Evaluate(), StdMeshers_Regular_1D::Evaluate(), StdMeshers_Quadrangle_2D::evaluateQuadPref(), SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), VISCOUS_2D::_ProxyMeshHolder::FindProxyMeshOfFace(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Gen::GetAlgo(), SMESH_Gen::GetAlgoState(), SMESH_subMesh::GetAncestors(), SMESH_Gen_i::GetComputeErrors(), StdMeshers_Quadrangle_2D::getEnforcedUV(), SMESH_Mesh::GetHypotheses(), SMESH_Mesh::GetHypothesis(), VISCOUS_3D::_ViscousListener::GetSolidMesh(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), StdMeshers_Prism_3D::initPrism(), SMESH_MeshEditor_i::LinearAnglesVariation(), SMESH_Gen_i::Load(), StdMeshers_ProjectionUtils::MakeComputed(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), StdMeshers_Prism_3D::makeQuadsForOutInProjection(), StdMeshers_Cartesian_VL::ViscousBuilder::MakeViscousLayers(), SMESH_Algo::NumberOfPoints(), SMESH_Gen::parallelComputeSubMeshes(), StdMeshers_Prism_3D::project2dMesh(), StdMeshers_Prism_3D::projectBottomToTop(), VISCOUS_2D::_ViscousBuilder2D::refine(), SMESH_Mesh::RemoveHypothesis(), VISCOUS_2D::_ViscousBuilder2D::removeMeshFaces(), VISCOUS_3D::_ViscousListener::RemoveSolidMesh(), StdMeshers_ViscousLayers2D::RestoreListeners(), SMESH_Gen::sequentialComputeSubMeshes(), MeshEditor_I::TSearchersDeleter::Set(), StdMeshers_ProjectionUtils::SetEventListener(), VISCOUS_2D::_ViscousBuilder2D::shrink(), VISCOUS_3D::ToClearSubWithMain(), and StdMeshers_Prism_3D::toSM().

◆ GetSubMeshContaining() [1/2]

SMESH_subMesh * SMESH_Mesh::GetSubMeshContaining ( const int  aShapeID) const
inherited

Get the SMESH_subMesh object implementation.

Don't create it, return null if it does not exist.

References SMESH_Mesh::_subMeshHolder, and SMESHDS_TSubMeshHolder< SUBMESH >::Get().

◆ GetSubMeshContaining() [2/2]

SMESH_subMesh * SMESH_Mesh::GetSubMeshContaining ( const TopoDS_Shape &  aSubShape) const
inherited

Get the SMESH_subMesh object implementation.

Don't create it, return null if it does not exist.

References SMESH_Mesh::_meshDS, and SMESHDS_Mesh::ShapeToIndex().

Referenced by SMESH_Mesh_i::CheckGeomModif(), SMESH_Mesh::Clear(), StdMeshers_Penta_3D::ClearMeshOnFxy1(), SMESH_Mesh::ClearSubMesh(), clearSubMesh(), StdMeshers_Regular_1D::computeInternalParameters(), SMESH_MeshEditor::ConvertFromQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), SMESH_Gen_i::CopyMeshWithGeom(), SMESH_Pattern::createElements(), SMESH_subMesh::deleteOwnListeners(), StdMeshers_Hexa_3D::Evaluate(), StdMeshers_Penta_3D::FindNodeOnShape(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_subMesh::GetAncestors(), SMESH_Mesh::getAncestorsSubMeshes(), SMESH_Gen_i::GetBadInputElements(), SMESH_Mesh::GetComputeProgress(), SMESH_Mesh::GetGroupSubMeshesContaining(), StdMeshers_Propagation::GetPropagationSource(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), SMESH_Mesh_i::GetSubMeshElementsId(), SMESH_Mesh_i::GetSubMeshElementType(), SMESH_Mesh_i::GetSubMeshNodesId(), StdMeshers_Import_1D::getSubMeshOfCopiedMesh(), StdMeshers_Prism_3D::initPrism(), SMESH_Mesh::IsComputedOK(), StdMeshers_Penta_3D::MakeBlock(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), StdMeshers_Penta_3D::MakeNodes(), StdMeshers_Penta_3D::MakeVolumeMesh(), SMESH_MeshEditor::MergeNodes(), SMESH_Gen_i::Precompute(), SMESH_Mesh_i::removeSubMesh(), SMESH_Mesh_i::ReplaceShape(), SMESH_Mesh::SortByMeshOrder(), MeshEditor_I::TSearchersDeleter::Unset(), SMESH_Gen_i::UpdateIcons(), and SMESH_Mesh::~SMESH_Mesh().

◆ GMFToMesh()

SMESH_ComputeErrorPtr SMESH_Mesh::GMFToMesh ( const char *  theFileName,
bool  theMakeRequiredGroups = true 
)
inherited

◆ HasDuplicatedGroupNamesMED()

bool SMESH_Mesh::HasDuplicatedGroupNamesMED ( )
inherited

Check group names for duplications.

Check if any groups of the same type have equal names.

Consider maximum group name length stored in MED file

References SMESH_Mesh::_mapGroup, SMESH_Group::GetGroupDS(), SMESH_Group::GetName(), SMESHDS_GroupBase::GetType(), and MAX_MED_GROUP_NAME_LENGTH.

Referenced by SMESH_Mesh_i::HasDuplicatedGroupNamesMED().

◆ HasModificationsToDiscard()

bool SMESH_Mesh::HasModificationsToDiscard ( ) const
inherited

◆ HasShapeToMesh()

◆ IsComputedOK()

◆ IsMainShape()

◆ IsNotConformAllowed()

bool SMESH_Mesh::IsNotConformAllowed ( ) const
inherited

check if a hypothesis allowing notconform mesh is present

References SMESH_Mesh::_meshDS, SMESH_Mesh::GetHypothesis(), SMESH_HypoFilter::HasName(), MESSAGE, and SMESHDS_Mesh::ShapeToMesh().

Referenced by SMESH_Gen::GetAlgoState().

◆ IsOrderOK()

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

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

References SMESH_Mesh::_subMeshOrder, and SMESH_subMesh::GetId().

Referenced by SMESH_Gen::GetAlgo().

◆ IsParallel()

virtual bool SMESH_Mesh::IsParallel ( )
virtualinherited

◆ IsUsedHypothesis()

◆ Load()

void SMESH_Mesh::Load ( )
inherited

Load mesh from study file.

References SMESH_Mesh::_callUp, and SMESH_Mesh::TCallUp::Load().

◆ Lock()

virtual void SMESH_Mesh::Lock ( )
virtualinherited

◆ MEDToMesh()

◆ MeshExists()

bool SMESH_Mesh::MeshExists ( int  meshId) const
inherited

Return true if a mesh with given id exists.

References SMESH_Mesh::_document, and SMESHDS_Document::GetMesh().

Referenced by SMESH_subMesh::GetEventListenerData().

◆ Nb0DElements()

smIdType SMESH_Mesh::Nb0DElements ( ) const
inherited

Return number of edges of given order in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::Nb0DElements().

Referenced by SMESH_Mesh_i::GetTypes(), and SMESH_Mesh_i::Nb0DElements().

◆ NbBalls()

smIdType SMESH_Mesh::NbBalls ( ) const
inherited

Return number of ball elements in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbBalls().

Referenced by SMESH_Mesh_i::GetTypes(), and SMESH_Mesh_i::NbBalls().

◆ NbBiQuadPrisms()

smIdType SMESH_Mesh::NbBiQuadPrisms ( ) const
inherited

◆ NbBiQuadQuadrangles()

smIdType SMESH_Mesh::NbBiQuadQuadrangles ( ) const
inherited

◆ NbBiQuadTriangles()

smIdType SMESH_Mesh::NbBiQuadTriangles ( ) const
inherited

◆ NbEdges()

◆ NbFaces()

◆ NbGroup()

size_t SMESH_Mesh::NbGroup ( ) const
inherited

◆ NbHexagonalPrisms()

smIdType SMESH_Mesh::NbHexagonalPrisms ( ) const
inherited

Return number of hexagonal prisms in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbHexPrisms().

Referenced by SMESH_Mesh_i::NbHexagonalPrisms().

◆ NbHexas()

smIdType SMESH_Mesh::NbHexas ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

◆ NbMeshes()

int SMESH_Mesh::NbMeshes ( ) const
inherited

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

References SMESH_Mesh::_document, and SMESHDS_Document::NbMeshes().

Referenced by SMESH_Mesh_i::~SMESH_Mesh_i().

◆ NbNodes()

◆ NbPolygons()

smIdType SMESH_Mesh::NbPolygons ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

Return the number of polygonal faces in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPolygons().

Referenced by SMESH_Mesh_i::NbPolygons(), and SMESH_Mesh_i::NbPolygonsOfOrder().

◆ NbPolyhedrons()

smIdType SMESH_Mesh::NbPolyhedrons ( ) const
inherited

Return number of polyhedrons in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPolyhedrons().

Referenced by SMESH_Mesh_i::NbPolyhedrons().

◆ NbPrisms()

smIdType SMESH_Mesh::NbPrisms ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

Return number of prisms (penthahedrons) of given order in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPrisms().

Referenced by SMESH_Mesh_i::NbPrisms(), and SMESH_Mesh_i::NbPrismsOfOrder().

◆ NbPyramids()

smIdType SMESH_Mesh::NbPyramids ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

Return number of pyramids of given order in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPyramids().

Referenced by SMESH_Mesh_i::NbPyramids(), and SMESH_Mesh_i::NbPyramidsOfOrder().

◆ NbQuadPrisms()

smIdType SMESH_Mesh::NbQuadPrisms ( ) const
inherited

◆ NbQuadrangles()

◆ NbSubMesh()

smIdType SMESH_Mesh::NbSubMesh ( ) const
inherited

Return number of submeshes in the mesh.

References SMESH_Mesh::_meshDS, and SMDS_Mesh::NbSubMesh().

◆ NbTetras()

smIdType SMESH_Mesh::NbTetras ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

Return number of tetrahedrons of given order in the mesh.

References SMESH_Mesh::_meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbTetras().

Referenced by SMESH_Mesh_i::NbTetras(), and SMESH_Mesh_i::NbTetrasOfOrder().

◆ NbTriangles()

smIdType SMESH_Mesh::NbTriangles ( SMDSAbs_ElementOrder  order = ORDER_ANY) const
inherited

◆ NbTriQuadraticHexas()

smIdType SMESH_Mesh::NbTriQuadraticHexas ( ) const
inherited

◆ NbVolumes()

◆ NotifySubMeshesHypothesisModification()

◆ PseudoShape()

const TopoDS_Solid & SMESH_Mesh::PseudoShape ( )
staticinherited

◆ Remove() [1/2]

void MeshEditor_I::TPreviewMesh::Remove ( SMDS_ElemIteratorPtr  eIt)

◆ Remove() [2/2]

◆ RemoveAll()

void MeshEditor_I::TPreviewMesh::RemoveAll ( )

◆ RemoveGroup()

◆ RemoveHypothesis()

◆ SetAutoColor()

void SMESH_Mesh::SetAutoColor ( bool  theAutoColor)
inherited

Auto color functionality.

References SMESH_Mesh::_isAutoColor.

Referenced by SMESH_Gen_i::Load(), and SMESH_Mesh_i::SetAutoColor().

◆ SetCallUp()

void SMESH_Mesh::SetCallUp ( TCallUp upCaller)
inherited

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

The set upCaller will be deleted by SMESH_Mesh

References SMESH_Mesh::_callUp.

Referenced by SMESH_Mesh_i::SetImpl().

◆ SetIsModified()

void SMESH_Mesh::SetIsModified ( bool  isModified)
inherited

◆ SetMeshOrder()

void SMESH_Mesh::SetMeshOrder ( const TListOfListOfInt theOrder)
inherited

remove submesh order from Mesh

References SMESH_Mesh::_subMeshOrder.

Referenced by SMESH_Gen_i::Load(), and SMESH_Mesh_i::SetMeshOrder().

◆ ShapeToMesh()

◆ SortByMeshOrder()

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

sort submeshes according to stored mesh order

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

References SMESH_Mesh::_subMeshOrder, SMESHDS_SubMesh::GetID(), and SMESH_Mesh::GetSubMeshContaining().

Referenced by SMESH_Mesh::getAncestorsSubMeshes(), SMESH_Mesh::GetHypotheses(), SMESH_Mesh::GetHypothesis(), and StdMeshers_ProjectionUtils::MakeComputed().

◆ STLToMesh()

◆ SynchronizeGroups()

bool SMESH_Mesh::SynchronizeGroups ( )
inherited

Creates SMESH_Groups for not wrapped SMESHDS_Groups.

Return values
bool- true if new SMESH_Groups have been created

References SMESH_Mesh::_groupId, SMESH_Mesh::_mapGroup, SMESH_Mesh::_meshDS, SMESHDS_Mesh::GetGroups(), and SMESHDS_GroupBase::GetID().

Referenced by SMESH_Mesh::CGNSToMesh(), and SMESH_Mesh::GMFToMesh().

◆ UndefShapeToMesh()

void SMESH_Mesh::UndefShapeToMesh ( )
inherited

◆ Unlock()

virtual void SMESH_Mesh::Unlock ( )
virtualinherited

◆ UNVToMesh()

◆ wait()

virtual void SMESH_Mesh::wait ( )
virtualinherited

Field Documentation

◆ _ancestorSubMeshes

std::vector<SMESH_subMesh*> SMESH_Mesh::_ancestorSubMeshes
mutableprotectedinherited

◆ _callUp

◆ _document

◆ _gen

◆ _groupId

int SMESH_Mesh::_groupId
protectedinherited

◆ _id

◆ _isAutoColor

bool SMESH_Mesh::_isAutoColor
protectedinherited

◆ _isModified

bool SMESH_Mesh::_isModified
protectedinherited

◆ _isShapeToMesh

◆ _mapAncestors

TopTools_IndexedDataMapOfShapeListOfShape SMESH_Mesh::_mapAncestors
protectedinherited

◆ _mapGroup

◆ _meshDS

◆ _nbSubShapes

int SMESH_Mesh::_nbSubShapes
protectedinherited

◆ _shapeDiagonal

double SMESH_Mesh::_shapeDiagonal
protectedinherited

diagonal size of bounding box of shape to mesh

Referenced by SMESH_Mesh::GetShapeDiagonalSize(), SMESH_Mesh::ShapeToMesh(), and SMESH_Mesh::SMESH_Mesh().

◆ _subMeshHolder

◆ _subMeshOrder

◆ myPreviewType

SMDSAbs_ElementType MeshEditor_I::TPreviewMesh::myPreviewType