#include <SMESH_Mesh.hxx>

Data Structures | |
| class | SubMeshHolder |
| struct | TCallUp |
| struct | TooLargeForExport |
| Exception thrown by Export*() in case if a mesh is too large for export due to limitation of a format. More... | |
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, 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... | |
| 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_Hypothesis * | GetHypothesis (const TopoDS_Shape &aSubShape, const SMESH_HypoFilter &aFilter, const bool andAncestors, TopoDS_Shape *assignedTo=0) const |
| Return the hypothesis assigned to the shape. 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... | |
| const SMESH_Hypothesis * | GetHypothesis (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... | |
| 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... | |
| SMESH_Hypothesis * | GetHypothesis (const int aHypID) const |
| Return a hypothesis by its ID. More... | |
| SMESH_Hypothesis::Hypothesis_Status | CheckHypothesesOnSubMeshes (SMESH_subMesh *subMesh, const SMESH_Hypothesis *anHyp, const SMESH_subMesh::algo_event event) const |
| Iterates hypothesis for all sub-meshes of the given sub-mesh and checks algo state with the given event. 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_Mesh * | FindMesh (int meshId) const |
| Return a mesh by id. More... | |
| SMESHDS_Mesh * | GetMeshDS () |
| const SMESHDS_Mesh * | GetMeshDS () const |
| SMESH_Gen * | GetGen () |
| SMESH_subMesh * | GetSubMesh (const TopoDS_Shape &aSubShape) |
| Get or Create the SMESH_subMesh object implementation. More... | |
| SMESH_subMesh * | GetSubMeshContaining (const TopoDS_Shape &aSubShape) const |
| Get the SMESH_subMesh object implementation. More... | |
| SMESH_subMesh * | GetSubMeshContaining (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 TAncestorMap & | GetAncestorMap () 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 | ExportStructuredCGNS (const char *file, const SMESHDS_Mesh *mesh, const char *meshName=0) |
| Export the mesh to the StructuredCGNS 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_Group * | AddGroup (const SMDSAbs_ElementType theType, const char *theName, const int theId=-1, const TopoDS_Shape &theShape=TopoDS_Shape(), const SMESH_PredicatePtr &thePredicate=SMESH_PredicatePtr()) |
| SMESH_Group * | AddGroup (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_Group * | GetGroup (const int theGroupID) const |
| Return a group by ID. More... | |
| bool | RemoveGroup (const int theGroupID) |
| SMESH_Group * | ConvertToStandalone (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 TListOfListOfInt & | GetMeshOrder () 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 int | GetParallelElement () |
| 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... | |
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 | _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... | |
| 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.
| SMESH_Mesh::SMESH_Mesh | ( | int | theLocalId, |
| SMESH_Gen * | theGen, | ||
| bool | theIsEmbeddedMode, | ||
| SMESHDS_Document * | theDocument | ||
| ) |
References _callUp, _document, _gen, _id, _isAutoColor, _isModified, _isShapeToMesh, _meshDS, _shapeDiagonal, _subMeshHolder, SMESHDS_Mesh::GetPersistentId(), SMESHDS_Document::InitMeshesIterator(), MESSAGE, SMESHDS_Document::MoreMesh(), SMESHDS_Document::NbMeshes(), SMESHDS_Document::NewMesh(), SMESHDS_Document::NextMesh(), PseudoShape(), SMESHDS_Mesh::SetPersistentId(), and SMESHDS_Mesh::ShapeToMesh().
|
virtual |
|
protected |
Constructor of SMESH_Mesh being a base of some descendant class.
References _subMeshHolder.
|
protected |
| SMESH_Group * SMESH_Mesh::AddGroup | ( | const SMDSAbs_ElementType | theType, |
| const char * | theName, | ||
| const int | theId = -1, |
||
| const TopoDS_Shape & | theShape = TopoDS_Shape(), |
||
| const SMESH_PredicatePtr & | thePredicate = SMESH_PredicatePtr() |
||
| ) |
References _groupId, _mapGroup, SMESHDS_Mesh::AddGroup(), SMESH_Group::GetGroupDS(), and GetMeshDS().
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), SMESH_MeshEditor::CreateFlatElementsOnFacesGroups(), StdMeshers_ViscousLayers::CreateGroup(), SMESH_Mesh_i::createGroup(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), SMESH_MeshEditor::generateGroups(), StdMeshers_Import_1D::importMesh(), MEDToMesh(), and UNVToMesh().
| SMESH_Group * SMESH_Mesh::AddGroup | ( | SMESHDS_GroupBase * | groupDS | ) |
Creates a group based on an existing SMESHDS group.
Group ID should be unique
References _groupId, _mapGroup, SMESHDS_Mesh::AddGroup(), SMESH_Group::GetGroupDS(), SMESHDS_GroupBase::GetID(), and GetMeshDS().
| SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh::AddHypothesis | ( | const TopoDS_Shape & | aSubShape, |
| int | anHypId, | ||
| std::string * | error = 0 |
||
| ) |
References SMESH_subMesh::ADD_ALGO, SMESH_subMesh::ADD_FATHER_ALGO, SMESH_subMesh::ADD_FATHER_HYP, SMESH_subMesh::ADD_HYP, SMESH_subMesh::AlgoStateEngine(), SMESH_subMesh::CheckConcurrentHypothesis(), CheckHypothesesOnSubMeshes(), SMESH_subMesh::DumpAlgoState(), SMESH_subMesh::GetComputeError(), SMESH_subMesh::getDependsOnIterator(), SMESH_Hypothesis::GetDim(), GetHypothesis(), SMESH_subMesh::GetId(), GetMeshDS(), SMESHDS_Hypothesis::GetName(), SMESH_Gen::GetShapeDim(), GetSubMesh(), SMESHDS_Hypothesis::GetType(), HasModificationsToDiscard(), SMESH_Hypothesis::HYP_BAD_SUBSHAPE, SMESH_Hypothesis::HYP_CONCURRENT, SMESH_Hypothesis::HYP_INCOMPATIBLE, SMESH_subMesh::IsApplicableHypothesis(), IsMainShape(), SMESH_Hypothesis::IsStatusFatal(), MESSAGE, SMDS_Mesh::Modified(), SMESHDS_Hypothesis::PARAM_ALGO, SMESH_subMesh::REMOVE_ALGO, SMESH_subMesh::REMOVE_HYP, and SMESH_subMesh::SubMeshesAlgoStateEngine().
Referenced by SMESH_Mesh_i::addHypothesis(), SMESH_Mesh_i::CheckGeomGroupModif(), and SMESH_Mesh_i::CheckGeomModif().
| int SMESH_Mesh::CGNSToMesh | ( | const char * | theFileName, |
| const int | theMeshIndex, | ||
| std::string & | theMeshName | ||
| ) |
Reads the given mesh from the CGNS file.
| theFileName | - name of the file |
| int | - Driver_Mesh::Status |
References _meshDS, Driver_Mesh::DRS_FAIL, Driver_Mesh::GetMeshName(), DriverCGNS_Read::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), and SynchronizeGroups().
Referenced by SMESH_Mesh_i::ImportCGNSFile().
| SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh::CheckHypothesesOnSubMeshes | ( | SMESH_subMesh * | subMesh, |
| const SMESH_Hypothesis * | anHyp, | ||
| const SMESH_subMesh::algo_event | event | ||
| ) | const |
Iterates hypothesis for all sub-meshes of the given sub-mesh and checks algo state with the given event.
The goal is to address hypothesis those are not directly affected by changing of an algorithm of the given sub-shape. It is essential to rebuild propagation chains of such hypotheses, otherwise the chains are being cleared after editing of the algorithm and never rebuilt again.
| subMesh | - the main sub-mesh to check sub-meshes of |
| anHyp | - the hypothesis changed on the given sub-mesh, we need to skip it from checking |
| event | - the given event |
| SMESH_Hypothesis::Hypothesis_Status | - HYP_OK if no errors found, otherwise the most severe error |
References SMESH_subMesh::GetAlgo(), SMESH_Algo::GetCompatibleHypoFilter(), SMESH_subMesh::getDependsOnIterator(), GetHypotheses(), GetHypothesis(), SMESHDS_Hypothesis::GetName(), SMESH::HYP_OK, and SMESH_subMesh::SubMeshesAlgoStateEngine().
Referenced by AddHypothesis().
| void SMESH_Mesh::Clear | ( | ) |
Remove all nodes and elements.
References _isModified, _meshDS, SMESH_subMesh::CHECK_COMPUTE_STATE, SMESH_subMesh::CLEAN, SMESHDS_Mesh::ClearMesh(), GetMeshDS(), GetShapeToMesh(), GetSubMeshContaining(), HasShapeToMesh(), and SMDS_Mesh::Modified().
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), SMESH_Mesh_i::Clear(), SMESH_MeshEditor_i::FillHole(), SMESH_MeshEditor_i::getPreviewMesh(), and NotifySubMeshesHypothesisModification().
| void SMESH_Mesh::ClearLog | ( | ) |
References _meshDS, SMESHDS_Script::Clear(), and SMESHDS_Mesh::GetScript().
Referenced by SMESH_Mesh_i::ClearLog(), and SMESH_Mesh_i::GetLog().
| void SMESH_Mesh::ClearMeshOrder | ( | ) |
remove submesh order from Mesh
References _subMeshOrder.
| void SMESH_Mesh::ClearSubMesh | ( | const int | theShapeId | ) |
Remove all nodes and elements of indicated shape.
References SMESH_subMesh::CHECK_COMPUTE_STATE, SMESH_subMesh::CLEAN, and GetSubMeshContaining().
Referenced by SMESH_Mesh_i::ClearSubMesh().
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
| SMESH_Group * SMESH_Mesh::ConvertToStandalone | ( | int | theGroupID | ) |
Convert group on geometry into standalone group.
References _mapGroup, SMESHDS_Group::Add(), SMESHDS_Mesh::AddGroup(), SMESHDS_GroupBase::GetColor(), SMESHDS_GroupBase::GetElements(), SMESH_Group::GetGroupDS(), GetMeshDS(), SMESH_Group::GetName(), SMESHDS_GroupBase::GetType(), SMESHDS_Mesh::RemoveGroup(), and SMESHDS_GroupBase::SetColor().
Referenced by SMESH_Mesh_i::ConvertToStandalone().
| std::ostream & SMESH_Mesh::Dump | ( | std::ostream & | save | ) |
Referenced by SMESH_Mesh_i::Dump().
| void SMESH_Mesh::ExportCGNS | ( | const char * | file, |
| const SMESHDS_Mesh * | mesh, | ||
| const char * | meshName = 0, |
||
| const bool | groupElemsByType = false |
||
| ) |
Export the mesh to the CGNS file.
References _mapGroup, Driver_Mesh::DRS_FAIL, Driver_Mesh::DRS_OK, Driver_Mesh::DRS_TOO_LARGE_MESH, Driver_Mesh::GetError(), SMESH_Group::GetGroupDS(), SMESH_Group::GetName(), SMESHDS_Mesh::GetPersistentId(), DriverCGNS_Write::Perform(), DriverCGNS_Write::SetElementsByType(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshName(), SMESHDS_GroupBase::SetStoreName(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportCGNS().
| void SMESH_Mesh::ExportDAT | ( | const char * | file, |
| const SMESHDS_Mesh * | meshPart = 0, |
||
| const bool | renumber = true |
||
| ) |
Export the mesh to a DAT file.
References _id, _meshDS, Driver_Mesh::DRS_TOO_LARGE_MESH, DriverDAT_W_SMDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), DriverDAT_W_SMDS_Mesh::SetRenumber(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportDAT(), and SMESH_Mesh_i::ExportPartToDAT().
| void SMESH_Mesh::ExportGMF | ( | const char * | file, |
| const SMESHDS_Mesh * | mesh, | ||
| bool | withRequiredGroups = true |
||
| ) |
Export the mesh to a GMF file.
References Driver_Mesh::DRS_TOO_LARGE_MESH, DriverGMF_Write::Perform(), DriverGMF_Write::SetExportRequiredGroups(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportGMF().
| 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 |
||
| ) |
Export the mesh to a med file.
| [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
|
| [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. |
References exportMEDCommmon(), MESSAGE, and DriverMED_W_SMESHDS_Mesh::SetFile().
Referenced by SMESH_Mesh_i::ExportMED(), SMESH_DriverMesh::exportMesh(), and MEDFileSpeCls::exportTo().
|
private |
Export the mesh to a writer.
References _id, _mapGroup, _meshDS, DriverMED_W_SMESHDS_Mesh::AddGroup(), DriverMED_W_SMESHDS_Mesh::AddGroupOf0DElems(), DriverMED_W_SMESHDS_Mesh::AddGroupOfBalls(), DriverMED_W_SMESHDS_Mesh::AddGroupOfEdges(), DriverMED_W_SMESHDS_Mesh::AddGroupOfFaces(), DriverMED_W_SMESHDS_Mesh::AddGroupOfNodes(), DriverMED_W_SMESHDS_Mesh::AddGroupOfVolumes(), DriverMED_W_SMESHDS_Mesh::AddODOnVertices(), Driver_Mesh::DRS_OK, Driver_Mesh::DRS_TOO_LARGE_MESH, SMESH_Group::GetGroupDS(), SMESH_Group::GetName(), SMESHDS_GroupBase::GetType(), MAX_MED_GROUP_NAME_LENGTH, DriverMED_W_SMESHDS_Mesh::Perform(), DriverMED_W_SMESHDS_Mesh::SetAutoDimension(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), Driver_Mesh::SetMeshName(), DriverMED_W_SMESHDS_Mesh::SetSaveNumbers(), SMESHDS_GroupBase::SetStoreName(), DriverMED_W_SMESHDS_Mesh::SetZTolerance(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by ExportMED(), and 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 |
||
| ) |
Same as SMESH_Mesh::ExportMED except for file and theVersion.
References exportMEDCommmon(), and DriverMED_W_SMESHDS_Mesh_Mem::getData().
Referenced by SMESH_Mesh_i::ExportMEDCoupling(), and MEDFileMemSpeCls::exportTo().
| void SMESH_Mesh::ExportSTL | ( | const char * | file, |
| const bool | isascii, | ||
| const char * | name = 0, |
||
| const SMESHDS_Mesh * | meshPart = 0 |
||
| ) |
Export the mesh to an STL file.
References _id, _meshDS, Driver_Mesh::DRS_TOO_LARGE_MESH, DriverSTL_W_SMDS_Mesh::Perform(), Driver_Mesh::SetFile(), DriverSTL_W_SMDS_Mesh::SetIsAscii(), Driver_SMDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), DriverSTL_W_SMDS_Mesh::SetName(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportPartToSTL(), and SMESH_Mesh_i::ExportSTL().
| void SMESH_Mesh::ExportStructuredCGNS | ( | const char * | file, |
| const SMESHDS_Mesh * | mesh, | ||
| const char * | meshName = 0 |
||
| ) |
Export the mesh to the StructuredCGNS file.
References _meshDS, Driver_Mesh::DRS_OK, Driver_Mesh::DRS_TOO_LARGE_MESH, Driver_Mesh::GetError(), DriverStructuredCGNS_Write::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshName(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportStructuredCGNS().
| void SMESH_Mesh::ExportUNV | ( | const char * | file, |
| const SMESHDS_Mesh * | meshPart = 0, |
||
| const bool | renumber = true |
||
| ) |
Export the mesh to an UNV file.
References _id, _mapGroup, _meshDS, DriverUNV_W_SMDS_Mesh::AddGroup(), Driver_Mesh::DRS_TOO_LARGE_MESH, SMESH_Group::GetGroupDS(), SMESH_Group::GetName(), DriverUNV_W_SMDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), DriverUNV_W_SMDS_Mesh::SetRenumber(), SMESHDS_GroupBase::SetStoreName(), SMESH_CATCH, SMESH_TRY, and SMESH::throwSalomeEx().
Referenced by SMESH_Mesh_i::ExportPartToUNV(), and SMESH_Mesh_i::ExportUNV().
|
private |
fill _mapAncestors
References _mapAncestors, fillAncestorsMap(), and GetShapeToMesh().
Referenced by fillAncestorsMap(), GetSubMesh(), and ShapeToMesh().
| SMESH_Mesh * SMESH_Mesh::FindMesh | ( | int | meshId | ) | const |
Return a mesh by id.
References _gen, _id, and SMESH_Gen::GetStudyContext().
Referenced by SMESH_subMesh::deleteOwnListeners(), and SMESH_subMesh::loadDependentMeshes().
| const TAncestorMap & SMESH_Mesh::GetAncestorMap | ( | ) | const |
Referenced by StdMeshers_ProjectionUtils::FindSubShapeAssociation().
| 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.
References _mapAncestors.
Referenced by SMESH_subMesh::CheckConcurrentHypothesis(), StdMeshers_Projection_1D::CheckHypothesis(), SMESH_Pattern::clearMesh(), StdMeshers_Projection_2D::Compute(), StdMeshers_ProjectionUtils::FindSubShapeAssociation(), SMESH_subMesh::GetAncestors(), SMESH_MesherHelper::GetAncestors(), getAncestorsSubMeshes(), StdMeshers_ProjectionUtils::GetEdgeByVertices(), SMESH_Gen_i::GetHypothesisParameterValues(), SMESH_MesherHelper::GetNodeUV(), StdMeshers_ProjectionUtils::GetPropagationEdge(), SMESH_ProxyMesh::GetProxyNode(), SMESH_Pattern::getSubmeshWithElements(), and SMESH_MesherHelper::NbAncestors().
|
private |
sort submeshes according to stored mesh order
| theListToSort | in out list to be sorted |
References GetAncestors(), GetSubMeshContaining(), and SortByMeshOrder().
| bool SMESH_Mesh::GetAutoColor | ( | ) |
References _isAutoColor.
Referenced by SMESH_Mesh_i::GetAutoColor().
| double SMESH_Mesh::GetComputeProgress | ( | ) | const |
Return a ratio of "compute cost" of computed sub-meshes to the whole "compute cost".
References _gen, SMESH_subMesh::DependsOn(), SMESH_subMesh::FAILED_TO_COMPUTE, SMESH_subMesh::GetAlgo(), SMESH_subMesh::GetComputeCost(), SMESH_subMesh::GetComputeState(), SMESH_Gen::GetCurrentSubMesh(), GetId(), SMESH_subMesh::GetId(), GetSubMeshContaining(), SMESH_subMesh::IsEmpty(), and OCC_CATCH_SIGNALS.
Referenced by SMESH_Mesh_i::GetComputeProgress().
| SMDSAbs_ElementType SMESH_Mesh::GetElementType | ( | const smIdType | id, |
| const bool | iselem | ||
| ) |
References _meshDS, and SMDS_Mesh::GetElementType().
Referenced by SMESH_Mesh_i::GetElementType().
| SMESH_Gen * SMESH_Mesh::GetGen | ( | ) |
Referenced by SMESH_subMesh::AlgoStateEngine(), StdMeshers_Regular_1D::CheckHypothesis(), StdMeshers_Hexa_3D::Compute(), ComputePentahedralMesh(), SMESH_subMesh::ComputeStateEngine(), StdMeshers_Hexa_3D::Evaluate(), EvaluatePentahedralMesh(), SMESH_Mesh_i::findConcurrentSubMeshes(), VISCOUS_2D::_ViscousBuilder2D::findEdgesWithLayers(), SMESH_subMesh::GetAlgo(), TNodeDistributor::GetDistributor(), StdMeshers_CompositeSegment_1D::GetFaceSide(), SMESH_MesherHelper::GetGen(), and StdMeshers_ProjectionUtils::MakeComputed().
| SMESH_Group * SMESH_Mesh::GetGroup | ( | const int | theGroupID | ) | const |
Return a group by ID.
References _mapGroup.
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), and SMESH_GroupBase_i::GetSmeshGroup().
| std::list< int > SMESH_Mesh::GetGroupIds | ( | ) | const |
Return IDs of all groups.
References _mapGroup.
Referenced by SMESH_Gen_i::CreateDualMesh(), SMESH_MeshEditor_i::ExtrusionAlongPathObjects(), and SMESH_MeshEditor::generateGroups().
| SMESH_Mesh::GroupIteratorPtr SMESH_Mesh::GetGroups | ( | ) | const |
Return iterator on all existing groups.
References _mapGroup.
Referenced by StdMeshers_QuadToTriaAdaptor::Compute(), SMESH_Gen_i::CopyMesh(), StdMeshers_ViscousLayers::CreateGroup(), SMESH_Mesh_i::CreateGroupServants(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_MeshEditor::generateGroups(), StdMeshers_Import_1D::importMesh(), and StdMeshers_ImportSource1D::RestoreGroups().
| std::list< SMESH_subMesh * > SMESH_Mesh::GetGroupSubMeshesContaining | ( | const TopoDS_Shape & | shape | ) | const |
Return submeshes of groups containing the given subshape.
Return sub-meshes of groups containing the given sub-shape.
References _subMeshHolder, SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator(), GetSubMeshContaining(), SMESH_subMesh::GetSubMeshDS(), SMESH_subMesh::GetSubShape(), SMESHDS_SubMesh::IsComplexSubmesh(), and SMESH_MesherHelper::IsSubShape().
| 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 |
Return hypotheses assigned to the shape of a sub-mesh.
| 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 |
| int | - number of unique hypos in aHypList |
References _meshDS, cSMESH_Hyp, SMESH_subMesh::GetAncestors(), SMESHDS_Mesh::GetHypothesis(), SMESHDS_Hypothesis::GetName(), SMESH_subMesh::GetSubShape(), SMESH_Hypothesis::IsAuxiliary(), SMESH_HypoFilter::IsOk(), and SortByMeshOrder().
| 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 |
Return hypotheses assigned to the shape.
| 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 |
| int | - number of unique hypos in aHypList |
References GetHypotheses(), and GetSubMesh().
Referenced by CheckHypothesesOnSubMeshes(), StdMeshers_Regular_1D::CheckHypothesis(), VISCOUS_2D::findHyps(), GetHypotheses(), SMESH_Algo::GetUsedHypothesis(), StdMeshers_Regular_1D::GetUsedHypothesis(), IsUsedHypothesis(), StdMeshers_ProjectionUtils::MakeComputed(), and NotifySubMeshesHypothesisModification().
| SMESH_Hypothesis * SMESH_Mesh::GetHypothesis | ( | const int | aHypID | ) | const |
Return a hypothesis by its ID.
References _gen, SMESH_Gen::GetStudyContext(), and studyContextStruct::mapHypothesis.
| const SMESH_Hypothesis * SMESH_Mesh::GetHypothesis | ( | 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.
| 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 |
| SMESH_Hypothesis* | - the first hypo passed through aFilter |
References _meshDS, cSMESH_Hyp, SMESH_subMesh::GetAncestors(), SMESHDS_Mesh::GetHypothesis(), SMESH_subMesh::GetSubShape(), SMESH_HypoFilter::IsOk(), and SortByMeshOrder().
| const SMESH_Hypothesis * SMESH_Mesh::GetHypothesis | ( | const TopoDS_Shape & | aSubShape, |
| const SMESH_HypoFilter & | aFilter, | ||
| const bool | andAncestors, | ||
| TopoDS_Shape * | assignedTo = 0 |
||
| ) | const |
Return the hypothesis assigned to the shape.
| 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 |
| SMESH_Hypothesis* | - the first hypo passed through aFilter |
References GetHypothesis(), and GetSubMesh().
Referenced by AddHypothesis(), SMESH_subMesh::AlgoStateEngine(), CheckHypothesesOnSubMeshes(), SMESH_subMesh::cleanDependsOn(), StdMeshers_CompositeHexa_3D::Compute(), StdMeshers_RadialQuadrangle_1D2D::computeLayerPositions(), VISCOUS_3D::_ViscousBuilder::findSolidsWithLayers(), SMESH_Gen::GetAlgo(), TNodeDistributor::GetDistributor(), StdMeshers_Quadrangle_2D::getEnforcedUV(), GetHypothesis(), SMESH_MesherHelper::GetShapeOfHypothesis(), SMESH_subMesh::getSimilarAttached(), StdMeshers_Regular_1D::getVertexHyp(), SMESH_Gen::IsGlobalHypothesis(), IsNotConformAllowed(), StdMeshers_ProjectionUtils::SourceNotComputedError(), and SMESH_Mesh_i::~SMESH_Mesh_i().
| const std::list< const SMESHDS_Hypothesis * > & SMESH_Mesh::GetHypothesisList | ( | const TopoDS_Shape & | aSubShape | ) | const |
| int SMESH_Mesh::GetId | ( | ) | const |
| bool SMESH_Mesh::GetIsModified | ( | ) | const |
Referenced by SMESH_subMesh::ComputeStateEngine(), and SMESH_Gen_i::Save().
| const std::list< SMESHDS_Command * > & SMESH_Mesh::GetLog | ( | ) |
References _meshDS, SMESHDS_Script::GetCommands(), and SMESHDS_Mesh::GetScript().
Referenced by SMESH_Mesh_i::GetLog().
| SMESHDS_Mesh * SMESH_Mesh::GetMeshDS | ( | ) |
Referenced by SMESH_Gen_i::_GetInside(), AddGroup(), AddHypothesis(), SMESH_Mesh_i::addHypothesis(), SMESH_Gen_i::AddHypothesisToShape(), SMESH_MeshEditor_i::AddNodeOnSegment(), StdMeshers_RenumberHelper::AddReplacingNode(), SMESH_subMesh::AlgoStateEngine(), 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(), 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_subMesh::ComputeStateEngine(), SMESH_Gen_i::ConcatenateCommon(), 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::CreateMeshesFromMESHIO(), SMESH_Gen_i::CreateMeshesFromSTL(), SMESH_Gen_i::CreateMeshesFromUNV(), StdMeshers_Penta_3D::CreateNode(), SMESH_subMesh::CreateSubMeshDS(), SMESH_MeshEditor_i::declareMeshModified(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), SMESH_Mesh_i::ElemNbEdges(), SMESH_Mesh_i::ElemNbFaces(), StdMeshers_Projection_1D::Evaluate(), SMESH_Mesh_i::ExportPartToMEDCommon(), SMESH_Mesh_i::ExportStructuredCGNS(), 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_subMesh::getCollection(), 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(), VISCOUS_2D::_ViscousBuilder2D::getMeshDS(), SMESH_MesherHelper::GetMeshDS(), SMESH_ProxyMesh::GetMeshDS(), VISCOUS_3D::_ViscousBuilder::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_subMesh::GetSubMeshDS(), SMESH_Pattern::getSubmeshWithElements(), SMESH_Mesh_i::GetVtkUgStream(), StdMeshers_Import_1D::importMesh(), SMESH_subMesh::IsConform(), SMESH_Gen::IsGlobalHypothesis(), SMESH_Mesh_i::IsMediumNode(), SMESH_Mesh_i::IsMediumNodeOfAnyElem(), SMESH_subMesh::IsMeshComputed(), 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(), NotifySubMeshesHypothesisModification(), SMESH_MeshEditor_i::Offset(), SMESH_MeshEditor::Offset(), SMESH_Gen::parallelComputeSubMeshes(), SMESH_PreMeshInfo::readSubMeshes(), SMESH_PreMeshInfo::readSubMeshInfo(), SMESH_Gen_i::ReloadMeshesFromCGNS(), SMESH_Gen_i::ReloadMeshesFromGMF(), SMESH_Gen_i::ReloadMeshesFromMED(), SMESH_Gen_i::ReloadMeshesFromMESHIO(), SMESH_Gen_i::ReloadMeshesFromSTL(), SMESH_Gen_i::ReloadMeshesFromUNV(), SMESH_Gen_i::ReloadMeshFromFile(), MeshEditor_I::TPreviewMesh::Remove(), MeshEditor_I::TPreviewMesh::RemoveAll(), RemoveGroup(), SMESH_Mesh_i::RemoveGroupWithContents(), 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().
| const SMESHDS_Mesh * SMESH_Mesh::GetMeshDS | ( | ) | const |
| const TListOfListOfInt & SMESH_Mesh::GetMeshOrder | ( | ) | const |
return submesh order if any
References _subMeshOrder.
Referenced by SMESH_Mesh_i::GetMeshOrder(), SMESH_Mesh_i::IsUnorderedSubMesh(), and SMESH_Gen_i::Save().
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
Referenced by SMESH_subMesh::ComputeStateEngine(), and SMESH_Gen::parallelComputeSubMeshes().
| TopoDS_Shape SMESH_Mesh::GetShapeByEntry | ( | const std::string & | entry | ) | const |
References _callUp, and SMESH_Mesh::TCallUp::GetShapeByEntry().
Referenced by StdMeshers_BlockRenumber::CheckHypothesis(), and StdMeshers_BlockRenumber::IsSolidIncluded().
| double SMESH_Mesh::GetShapeDiagonalSize | ( | ) | const |
Return diagonal size of bounding box of shape to mesh.
References _isShapeToMesh, _shapeDiagonal, GetShapeDiagonalSize(), and GetShapeToMesh().
Referenced by StdMeshers_Regular_1D::CheckHypothesis(), SMESH_Gen_i::GetHypothesisParameterValues(), GetShapeDiagonalSize(), and StdMeshers_NumberOfLayers::SetParametersByDefaults().
|
static |
Return diagonal size of bounding box of a shape.
References SMESHUtils::Add(), and OCC_CATCH_SIGNALS.
| TopoDS_Shape SMESH_Mesh::GetShapeToMesh | ( | ) | const |
Return geometry to be meshed.
(It may be a PseudoShape()!)
References _meshDS, and SMESHDS_Mesh::ShapeToMesh().
Referenced by SMESH_Mesh_i::addHypothesis(), Clear(), SMESH_Gen_i::Compute(), StdMeshers_QuadToTriaAdaptor::Compute(), StdMeshers_Regular_1D::Compute(), StdMeshers_Prism_3D::computeBase(), SMESH_MeshEditor::ConvertFromQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), fillAncestorsMap(), VISCOUS_3D::_ViscousBuilder::findFacesWithLayers(), VISCOUS_3D::_ViscousBuilder::findSolidsWithLayers(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Gen::GetAlgo(), SMESH_subMesh::GetAncestors(), SMESH_Mesh_i::GetHypothesisList(), SMESH_Mesh_i::GetNodePosition(), GetShapeDiagonalSize(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), SMESH_Mesh_i::GetSubMesh(), SMESH_Gen_i::Load(), SMESH_ProxyMesh::NbFaces(), VISCOUS_2D::_ViscousBuilder2D::refine(), SMESH_Mesh_i::removeHypothesis(), SMESH_Mesh_i::ReplaceShape(), StdMeshers_ViscousLayers2D::RestoreListeners(), and MeshEditor_I::TSearchersDeleter::Set().
| SMESH_subMesh * SMESH_Mesh::GetSubMesh | ( | const TopoDS_Shape & | aSubShape | ) |
Get or Create the SMESH_subMesh object implementation.
References _meshDS, _nbSubShapes, _subMeshHolder, SMESHDS_TSubMeshHolder< SUBMESH >::Add(), SMESHDS_Mesh::AddCompoundSubmesh(), fillAncestorsMap(), SMESHDS_TSubMeshHolder< SUBMESH >::Get(), SMESH_subMesh::getDependsOnIterator(), GetSubMesh(), SMESHDS_Mesh::IndexToShape(), and SMESHDS_Mesh::ShapeToIndex().
Referenced by AddHypothesis(), StdMeshers_Prism_3D::assocOrProjBottom2Top(), StdMeshers_Quadrangle_2D::check(), SMESH_subMesh::checkComputeError(), 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(), SMESH_subMesh::ComputeStateEngine(), StdMeshers_Prism_3D::computeWalls(), SMESH_Pattern::createElements(), SMESH_Mesh_i::createSubMesh(), VISCOUS_2D::_ViscousBuilder2D::error(), VISCOUS_3D::_ViscousBuilder::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_3D::_ViscousBuilder::findFacesWithLayers(), VISCOUS_2D::_ProxyMeshHolder::FindProxyMeshOfFace(), VISCOUS_3D::_ViscousBuilder::findSolidsWithLayers(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Gen::GetAlgo(), SMESH_Gen::GetAlgoState(), SMESH_subMesh::GetAncestors(), SMESH_subMesh::getCollection(), SMESH_Gen_i::GetComputeErrors(), StdMeshers_Quadrangle_2D::getEnforcedUV(), GetHypotheses(), GetHypothesis(), VISCOUS_3D::_ViscousListener::GetSolidMesh(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), GetSubMesh(), StdMeshers_Prism_3D::initPrism(), SMESH_subMesh::insertDependence(), SMESH_MeshEditor_i::LinearAnglesVariation(), SMESH_Gen_i::Load(), StdMeshers_ProjectionUtils::MakeComputed(), VISCOUS_3D::_ViscousBuilder::makeEdgesOnShape(), VISCOUS_3D::_ViscousBuilder::makeLayer(), 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(), VISCOUS_3D::_ViscousBuilder::refine(), 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::_ViscousBuilder::shrink(), VISCOUS_3D::ToClearSubWithMain(), and StdMeshers_Prism_3D::toSM().
| SMESH_subMesh * SMESH_Mesh::GetSubMeshContaining | ( | const int | aShapeID | ) | const |
Get the SMESH_subMesh object implementation.
Don't create it, return null if it does not exist.
References _subMeshHolder, and SMESHDS_TSubMeshHolder< SUBMESH >::Get().
| SMESH_subMesh * SMESH_Mesh::GetSubMeshContaining | ( | const TopoDS_Shape & | aSubShape | ) | const |
Get the SMESH_subMesh object implementation.
Don't create it, return null if it does not exist.
References _meshDS, GetSubMeshContaining(), and SMESHDS_Mesh::ShapeToIndex().
Referenced by SMESH_Mesh_i::CheckGeomModif(), Clear(), StdMeshers_Penta_3D::ClearMeshOnFxy1(), ClearSubMesh(), clearSubMesh(), StdMeshers_Regular_1D::computeInternalParameters(), SMESH_MeshEditor::ConvertFromQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), SMESH_Gen_i::CopyMeshWithGeom(), SMESH_Pattern::createElements(), SMESH_subMesh::deleteOwnListeners(), SMESH_subMesh::DependsOn(), VISCOUS_3D::_ViscousBuilder::error(), StdMeshers_Hexa_3D::Evaluate(), StdMeshers_Penta_3D::FindNodeOnShape(), VISCOUS_3D::_ViscousBuilder::findPeriodicFaces(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_subMesh::GetAncestors(), getAncestorsSubMeshes(), SMESH_Gen_i::GetBadInputElements(), GetComputeProgress(), GetGroupSubMeshesContaining(), StdMeshers_Propagation::GetPropagationSource(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), GetSubMeshContaining(), SMESH_Mesh_i::GetSubMeshElementsId(), SMESH_Mesh_i::GetSubMeshElementType(), SMESH_Mesh_i::GetSubMeshNodesId(), StdMeshers_Import_1D::getSubMeshOfCopiedMesh(), StdMeshers_Prism_3D::initPrism(), 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_subMesh::removeSubMeshElementsAndNodes(), SMESH_Mesh_i::ReplaceShape(), SortByMeshOrder(), MeshEditor_I::TSearchersDeleter::Unset(), SMESH_Gen_i::UpdateIcons(), and ~SMESH_Mesh().
| SMESH_ComputeErrorPtr SMESH_Mesh::GMFToMesh | ( | const char * | theFileName, |
| bool | theMakeRequiredGroups = true |
||
| ) |
Fill its data by reading a GMF file.
References _meshDS, Driver_Mesh::GetError(), DriverGMF_Read::Perform(), Driver_Mesh::SetFile(), DriverGMF_Read::SetMakeRequiredGroups(), Driver_SMESHDS_Mesh::SetMesh(), and SynchronizeGroups().
Referenced by SMESH_Mesh_i::ImportGMFFile().
| bool SMESH_Mesh::HasDuplicatedGroupNamesMED | ( | ) |
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 _mapGroup, SMESH_Group::GetGroupDS(), SMESH_Group::GetName(), SMESHDS_GroupBase::GetType(), and MAX_MED_GROUP_NAME_LENGTH.
Referenced by SMESH_Mesh_i::HasDuplicatedGroupNamesMED().
| 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
References _isModified, _subMeshHolder, SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator(), SMESH_subMesh::GetSubShape(), SMESH_subMesh::IsMeshComputed(), and NbNodes().
Referenced by AddHypothesis(), StdMeshers_FaceSide::GetEdgeNodes(), SMESH_Mesh_i::HasModificationsToDiscard(), NotifySubMeshesHypothesisModification(), RemoveHypothesis(), SetIsModified(), and SMESH_Algo::VertexNode().
| bool SMESH_Mesh::HasShapeToMesh | ( | ) | const |
Return true if there is a geometry to be meshed, not PseudoShape()
Referenced by SMESH_subMesh::AlgoStateEngine(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), Clear(), SMESH_subMesh::ComputeStateEngine(), SMESH_MeshEditor::ConvertFromQuadratic(), SMESH_MeshEditor::ConvertToQuadratic(), SMESH_subMesh::DependsOn(), SMESH_subMesh::Evaluate(), SMESH_Mesh_i::ExportPartToMEDCommon(), SMESH_MesherHelper::FixQuadraticElements(), SMESH_Gen::GetAlgo(), SMESH_Gen::GetAlgoState(), SMESH_ProxyMesh::GetFaces(), SMESH_Mesh_i::GetHypothesisList(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), SMESH_Mesh_i::HasShapeToMesh(), SMESH_subMesh::IsApplicableHypothesis(), SMESH_MesherHelper::IsQuadraticSubMesh(), SMESH_Gen_i::Load(), SMESH_MeshEditor::MakeBoundaryMesh(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), SMESH_Pattern::MakeMesh(), SMESH_ProxyMesh::NbFaces(), SMESH_Gen::parallelComputeSubMeshes(), SMESH_PreMeshInfo::readSubMeshes(), SMESH_Mesh_i::RemoveHypothesis(), SMESH_Mesh_i::removeHypothesis(), StdMeshers_ViscousLayers2D::RestoreListeners(), SMESH_Gen_i::Save(), SMESH_Gen::sequentialComputeSubMeshes(), SMESH_ProxyMesh::shapeIndex(), and SMESH_MesherHelper::SMESH_MesherHelper().
| bool SMESH_Mesh::IsComputedOK | ( | ) |
Return true if all sub-meshes are computed OK - to update an icon.
References SMESH_subMesh::COMPUTE_OK, SMESH_subMesh::FAILED_TO_COMPUTE, SMESH_subMesh::GetComputeState(), GetSubMeshContaining(), SMESH_subMesh::IsAlwaysComputed(), NbNodes(), SMESH_subMesh::NOT_READY, and SMESH_subMesh::READY_TO_COMPUTE.
Referenced by SMESH_Mesh_i::IsComputedOK().
| bool SMESH_Mesh::IsMainShape | ( | const TopoDS_Shape & | theShape | ) | const |
References _meshDS, and SMESHDS_Mesh::ShapeToMesh().
Referenced by AddHypothesis(), SMESH_Mesh_i::addHypothesis(), checkConformIgnoredAlgos(), StdMeshers_Projection_2D::Compute(), SMESH_Pattern::Load(), and RemoveHypothesis().
| bool SMESH_Mesh::IsNotConformAllowed | ( | ) | const |
check if a hypothesis allowing notconform mesh is present
References _meshDS, GetHypothesis(), SMESH_HypoFilter::HasName(), MESSAGE, and SMESHDS_Mesh::ShapeToMesh().
Referenced by SMESH_subMesh::AlgoStateEngine(), SMESH_subMesh::ComputeStateEngine(), and SMESH_Gen::GetAlgoState().
| bool SMESH_Mesh::IsOrderOK | ( | const SMESH_subMesh * | smBefore, |
| const SMESH_subMesh * | smAfter | ||
| ) | const |
Return true if given order of sub-meshes is OK.
References _subMeshOrder, and SMESH_subMesh::GetId().
Referenced by SMESH_Gen::GetAlgo().
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
Referenced by SMESH_subMesh::ComputeStateEngine().
| bool SMESH_Mesh::IsUsedHypothesis | ( | SMESHDS_Hypothesis * | anHyp, |
| const SMESH_subMesh * | aSubMesh | ||
| ) |
Return True if anHyp is used to mesh aSubShape.
References SMESH_subMesh::GetAlgo(), SMESH_Algo::GetCompatibleHypoFilter(), GetHypotheses(), SMESHDS_Hypothesis::GetType(), SMESH_subMesh::IsApplicableHypothesis(), SMESH_Hypothesis::IsAuxiliary(), and SMESHDS_Hypothesis::PARAM_ALGO.
Referenced by SMESH_subMesh::AlgoStateEngine(), and NotifySubMeshesHypothesisModification().
| void SMESH_Mesh::Load | ( | ) |
Load mesh from study file.
References _callUp, and SMESH_Mesh::TCallUp::Load().
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
Referenced by SMESH_MeshLocker::SMESH_MeshLocker().
| int SMESH_Mesh::MEDToMesh | ( | const char * | theFileName, |
| const char * | theMeshName | ||
| ) |
References _isShapeToMesh, _meshDS, AddGroup(), SMESHDS_Mesh::CompactMesh(), Driver_Mesh::GetError(), DriverMED_R_SMESHDS_Mesh::GetGroup(), SMESH_Group::GetGroupDS(), DriverMED_R_SMESHDS_Mesh::GetGroupNamesAndTypes(), SMDS_Mesh::Modified(), DriverMED_R_SMESHDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMESHDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), DriverMED_R_SMESHDS_Mesh::SetMeshName(), and SMESHDS_GroupBase::SetStoreName().
Referenced by SMESH_Mesh_i::ImportMEDFile(), and SMESH_DriverMesh::importMesh().
| bool SMESH_Mesh::MeshExists | ( | int | meshId | ) | const |
Return true if a mesh with given id exists.
References _document, and SMESHDS_Document::GetMesh().
Referenced by SMESH_subMesh::GetEventListenerData().
| smIdType SMESH_Mesh::Nb0DElements | ( | ) | const |
Return number of edges of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::Nb0DElements().
Referenced by SMESH_Mesh_i::GetTypes(), and SMESH_Mesh_i::Nb0DElements().
| smIdType SMESH_Mesh::NbBalls | ( | ) | const |
Return number of ball elements in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbBalls().
Referenced by SMESH_Mesh_i::GetTypes(), and SMESH_Mesh_i::NbBalls().
| smIdType SMESH_Mesh::NbBiQuadPrisms | ( | ) | const |
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbBiQuadPrisms().
Referenced by SMESH_MesherHelper::FixQuadraticElements().
| smIdType SMESH_Mesh::NbBiQuadQuadrangles | ( | ) | const |
Return number of biquadratic quadrangles in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbBiQuadQuadrangles().
Referenced by SMESH_MesherHelper::FixQuadraticElements(), and SMESH_Mesh_i::NbBiQuadQuadrangles().
| smIdType SMESH_Mesh::NbBiQuadTriangles | ( | ) | const |
Return number of biquadratic triangles in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbBiQuadTriangles().
Referenced by SMESH_MesherHelper::FixQuadraticElements(), and SMESH_Mesh_i::NbBiQuadTriangles().
| smIdType SMESH_Mesh::NbEdges | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of edges of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbEdges().
Referenced by SMESH_MeshEditor::ExtrusionAlongTrack(), SMESH_MeshEditor::ExtrusionSweep(), SMESH_MeshEditor::FindCoincidentNodes(), SMESH_Mesh_i::FindElementByNodes(), SMESH_Mesh_i::GetTypes(), SMESH_MesherHelper::IsQuadraticMesh(), SMESH_Pattern_i::MakeMesh(), SMESH_Mesh_i::NbEdges(), SMESH_Mesh_i::NbEdgesOfOrder(), and SMESH_MeshEditor::RotationSweep().
| smIdType SMESH_Mesh::NbFaces | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of faces of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbFaces().
Referenced by StdMeshers_HexaFromSkin_3D::Evaluate(), SMESH_MeshEditor::ExtrusionSweep(), SMESH_MeshEditor::FindCoincidentNodes(), SMESH_Mesh_i::FindElementByNodes(), SMESH_ProxyMesh::GetFaces(), SMESH_Mesh_i::GetTypes(), SMESH_MesherHelper::IsQuadraticMesh(), SMESH_MesherHelper::IsQuadraticSubMesh(), SMESH_Pattern_i::MakeMesh(), SMESH_MeshEditor_i::MakePolyLine(), SMESH_MeshEditor_i::MakeSlot(), SMESH_Mesh_i::NbFaces(), SMESH_Mesh_i::NbFacesOfOrder(), SMESH_MeshEditor_i::Reorient2D(), and SMESH_MeshEditor::RotationSweep().
| size_t SMESH_Mesh::NbGroup | ( | ) | const |
Referenced by SMESH_MeshEditor_i::ExtrusionAlongPathObjects().
| smIdType SMESH_Mesh::NbHexagonalPrisms | ( | ) | const |
Return number of hexagonal prisms in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbHexPrisms().
Referenced by SMESH_Mesh_i::NbHexagonalPrisms().
| smIdType SMESH_Mesh::NbHexas | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of hexahedrons of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbHexas().
Referenced by SMESH_MeshEditor::GetHexaFacetsToSplit(), SMESH_Mesh_i::NbHexas(), and SMESH_Mesh_i::NbHexasOfOrder().
| int SMESH_Mesh::NbMeshes | ( | ) | const |
Returns number of meshes in the Study, that is supposed to be equal to SMESHDS_Document::NbMeshes()
References _document, and SMESHDS_Document::NbMeshes().
Referenced by SMESH_Mesh_i::~SMESH_Mesh_i().
| smIdType SMESH_Mesh::NbNodes | ( | ) | const |
Return number of nodes in the mesh.
References _meshDS, and SMDS_Mesh::NbNodes().
Referenced by SMESH_subMesh::cleanDependsOn(), SMESH_Mesh_i::GetTypes(), HasModificationsToDiscard(), IsComputedOK(), SMESH_Pattern_i::MakeMesh(), SMESH_Mesh_i::NbNodes(), NotifySubMeshesHypothesisModification(), and SMESH_MeshEditor_i::RemoveOrphanNodes().
| smIdType SMESH_Mesh::NbPolygons | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return the number of polygonal faces in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPolygons().
Referenced by SMESH_Mesh_i::NbPolygons(), and SMESH_Mesh_i::NbPolygonsOfOrder().
| smIdType SMESH_Mesh::NbPolyhedrons | ( | ) | const |
Return number of polyhedrons in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPolyhedrons().
Referenced by SMESH_Mesh_i::NbPolyhedrons().
| smIdType SMESH_Mesh::NbPrisms | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of prisms (penthahedrons) of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPrisms().
Referenced by SMESH_Mesh_i::NbPrisms(), and SMESH_Mesh_i::NbPrismsOfOrder().
| smIdType SMESH_Mesh::NbPyramids | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of pyramids of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbPyramids().
Referenced by SMESH_Mesh_i::NbPyramids(), and SMESH_Mesh_i::NbPyramidsOfOrder().
| smIdType SMESH_Mesh::NbQuadPrisms | ( | ) | const |
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbQuadPrisms().
| smIdType SMESH_Mesh::NbQuadrangles | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return the number nodes faces in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbQuadrangles().
Referenced by StdMeshers_QuadToTriaAdaptor::Compute(), StdMeshers_Prism_3D::Compute(), SMESH_Mesh_i::NbQuadrangles(), SMESH_Mesh_i::NbQuadranglesOfOrder(), and VISCOUS_3D::_ViscousBuilder::shrink().
| smIdType SMESH_Mesh::NbSubMesh | ( | ) | const |
Return number of submeshes in the mesh.
References _meshDS, and SMDS_Mesh::NbSubMesh().
| smIdType SMESH_Mesh::NbTetras | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of tetrahedrons of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbTetras().
Referenced by SMESH_Mesh_i::NbTetras(), and SMESH_Mesh_i::NbTetrasOfOrder().
| smIdType SMESH_Mesh::NbTriangles | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return the number of faces in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbTriangles().
Referenced by StdMeshers_Hexa_3D::Compute(), SMESH_Mesh_i::NbTriangles(), SMESH_Mesh_i::NbTrianglesOfOrder(), and VISCOUS_3D::_ViscousBuilder::shrink().
| smIdType SMESH_Mesh::NbTriQuadraticHexas | ( | ) | const |
Return number of triquadratic hexahedrons in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbTriQuadHexas().
Referenced by SMESH_MesherHelper::FixQuadraticElements(), and SMESH_Mesh_i::NbTriQuadraticHexas().
| smIdType SMESH_Mesh::NbVolumes | ( | SMDSAbs_ElementOrder | order = ORDER_ANY | ) | const |
Return number of volumes of given order in the mesh.
References _meshDS, SMDS_Mesh::GetMeshInfo(), and SMDS_MeshInfo::NbVolumes().
Referenced by StdMeshers_QuadToTriaAdaptor::Compute(), SMESH_MeshEditor::ExtrusionSweep(), SMESH_MeshEditor::FindCoincidentNodes(), SMESH_Mesh_i::FindElementByNodes(), SMESH_Mesh_i::GetTypes(), SMESH_Pattern::Load(), SMESH_Pattern_i::MakeMesh(), SMESH_Mesh_i::NbVolumes(), SMESH_Mesh_i::NbVolumesOfOrder(), and SMESH_MeshEditor::RotationSweep().
| void SMESH_Mesh::NotifySubMeshesHypothesisModification | ( | const SMESH_Hypothesis * | theChangedHyp | ) |
Say all submeshes that theChangedHyp has been modified.
References _callUp, _meshDS, _subMeshHolder, Clear(), SMESH_subMesh::COMPUTE_OK, SMESH_Hypothesis::DataDependOnParams(), SMESH_subMesh::FAILED_TO_COMPUTE, SMESH_subMesh::GetAlgo(), SMESH_subMesh::GetAlgoState(), SMESH_Algo::GetCompatibleHypoFilter(), SMESH_subMesh::GetComputeState(), GetHypotheses(), SMESHDS_Hypothesis::GetID(), SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator(), GetMeshDS(), SMESH_subMesh::GetSubShape(), HasModificationsToDiscard(), SMESH_Mesh::TCallUp::HypothesisModified(), SMESH_subMesh::IsApplicableHypothesis(), SMESH_Hypothesis::IsAuxiliary(), SMESH_subMesh::IsEmpty(), SMESH_Mesh::TCallUp::IsLoaded(), SMESH_HypoFilter::IsOk(), IsUsedHypothesis(), SMESH_subMesh::MISSING_HYP, SMESH_subMesh::MODIF_HYP, SMDS_Mesh::Modified(), SMDS_Mesh::NbElements(), SMDS_Mesh::NbNodes(), and NbNodes().
Referenced by SMESH_Hypothesis::NotifySubMeshesHypothesisModification().
|
static |
Return a solid which is returned by GetShapeToMesh() if a real geometry to be meshed was not set.
Referenced by SMESH_Gen_i::CancelCompute(), SMESH_Gen_i::Compute(), SMESH_Gen_i::Evaluate(), SMESH_Gen_i::GetAlgoState(), SMESH_Gen_i::GetComputeErrors(), SMESH_Gen_i::GetMeshOrSubmeshByShape(), SMESH_Gen_i::Load(), ShapeToMesh(), and SMESH_Mesh().
| bool SMESH_Mesh::RemoveGroup | ( | const int | theGroupID | ) |
References _callUp, _mapGroup, GetMeshDS(), SMESH_Mesh::TCallUp::RemoveGroup(), and SMESHDS_Mesh::RemoveGroup().
Referenced by SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), and SMESH_Mesh_i::removeGroup().
| SMESH_Hypothesis::Hypothesis_Status SMESH_Mesh::RemoveHypothesis | ( | const TopoDS_Shape & | aSubShape, |
| int | anHypId | ||
| ) |
References _gen, SMESH_subMesh::AlgoStateEngine(), SMESH_subMesh::CheckConcurrentHypothesis(), SMESH_subMesh::DumpAlgoState(), SMESH_subMesh::getDependsOnIterator(), SMESH_Hypothesis::GetDim(), GetMeshDS(), SMESH_Gen::GetShapeDim(), SMESH_Gen::GetStudyContext(), GetSubMesh(), SMESHDS_Hypothesis::GetType(), HasModificationsToDiscard(), SMESH_Hypothesis::HYP_CONCURRENT, SMESH_Hypothesis::HYP_OK, SMESH_subMesh::IsApplicableHypothesis(), IsMainShape(), SMESH_Hypothesis::IsStatusFatal(), studyContextStruct::mapHypothesis, MESSAGE, SMDS_Mesh::Modified(), SMESHDS_Hypothesis::PARAM_ALGO, SMESH_subMesh::REMOVE_ALGO, SMESH_subMesh::REMOVE_FATHER_ALGO, SMESH_subMesh::REMOVE_FATHER_HYP, SMESH_subMesh::REMOVE_HYP, and SMESH_subMesh::SubMeshesAlgoStateEngine().
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::removeHypothesis(), SMESH_Mesh_i::removeSubMesh(), and SMESH_Gen_i::Save().
| void SMESH_Mesh::SetAutoColor | ( | bool | theAutoColor | ) |
Auto color functionality.
References _isAutoColor.
Referenced by SMESH_Gen_i::Load(), and SMESH_Mesh_i::SetAutoColor().
| 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
References _callUp.
Referenced by SMESH_Mesh_i::SetImpl().
| 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
References _isModified, and HasModificationsToDiscard().
Referenced by SMESH_MeshEditor_i::declareMeshModified(), SMESH_Pattern_i::MakeMesh(), SMESH_PreMeshInfo::readSubMeshes(), SMESH_Mesh_i::RemoveGroupWithContents(), SMESH_MeshEditor_i::SetMeshElementOnShape(), SMESH_MeshEditor_i::SetNodeOnEdge(), SMESH_MeshEditor_i::SetNodeOnFace(), and SMESH_MeshEditor_i::SetNodeOnVertex().
| void SMESH_Mesh::SetMeshOrder | ( | const TListOfListOfInt & | theOrder | ) |
remove submesh order from Mesh
References _subMeshOrder.
Referenced by SMESH_Gen_i::Load(), and SMESH_Mesh_i::SetMeshOrder().
| void SMESH_Mesh::ShapeToMesh | ( | const TopoDS_Shape & | aShape | ) |
Set geometry to be meshed.
References _isModified, _isShapeToMesh, _mapAncestors, _mapGroup, _meshDS, _nbSubShapes, _shapeDiagonal, _subMeshHolder, SMESHDS_TSubMeshHolder< SUBMESH >::DeleteAll(), fillAncestorsMap(), SMESHDS_Mesh::MaxShapeIndex(), MESSAGE, PseudoShape(), SMESHDS_Mesh::RemoveGroup(), and SMESHDS_Mesh::ShapeToMesh().
Referenced by SMESH_MeshEditor_i::AddNodeOnSegment(), SMESH_Mesh_i::CheckGeomGroupModif(), SMESH_Mesh_i::CheckGeomModif(), SMESH_Gen_i::Save(), and SMESH_Mesh_i::SetShape().
| bool SMESH_Mesh::SortByMeshOrder | ( | std::vector< SMESH_subMesh * > & | theListToSort | ) | const |
sort submeshes according to stored mesh order
| theListToSort | in out list to be sorted |
References _subMeshOrder, SMESHDS_SubMesh::GetID(), and GetSubMeshContaining().
Referenced by getAncestorsSubMeshes(), GetHypotheses(), GetHypothesis(), and StdMeshers_ProjectionUtils::MakeComputed().
| std::string SMESH_Mesh::STLToMesh | ( | const char * | theFileName | ) |
| bool SMESH_Mesh::SynchronizeGroups | ( | ) |
Creates SMESH_Groups for not wrapped SMESHDS_Groups.
| bool | - true if new SMESH_Groups have been created |
References _groupId, _mapGroup, _meshDS, SMESHDS_Mesh::GetGroups(), and SMESHDS_GroupBase::GetID().
Referenced by CGNSToMesh(), and GMFToMesh().
| void SMESH_Mesh::UndefShapeToMesh | ( | ) |
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
Referenced by SMESH_MeshLocker::~SMESH_MeshLocker().
| int SMESH_Mesh::UNVToMesh | ( | const char * | theFileName | ) |
consult DriverMED_R_SMESHDS_Mesh::ReadStatus for returned value
References _isShapeToMesh, _mapGroup, _meshDS, AddGroup(), DriverUNV_R_SMDS_Mesh::GetGroupNamesMap(), SMDS_MeshGroup::GetType(), DriverUNV_R_SMDS_Mesh::Perform(), Driver_Mesh::SetFile(), Driver_SMDS_Mesh::SetMesh(), Driver_Mesh::SetMeshId(), SMESHDS_GroupBase::SetStoreName(), and SMESHDS_Group::SMDSGroup().
Referenced by SMESH_Mesh_i::ImportUNVFile().
|
virtual |
Reimplemented in SMESH_ParallelMesh, and SMESH_SequentialMesh.
Referenced by SMESH_Gen::parallelComputeSubMeshes().
|
mutableprotected |
|
protected |
Referenced by GetShapeByEntry(), Load(), NotifySubMeshesHypothesisModification(), RemoveGroup(), SetCallUp(), SMESH_Mesh(), and ~SMESH_Mesh().
|
protected |
Referenced by MeshExists(), NbMeshes(), SMESH_Mesh(), and ~SMESH_Mesh().
|
protected |
Referenced by FindMesh(), GetComputeProgress(), GetHypothesis(), RemoveHypothesis(), SMESH_Mesh(), and ~SMESH_Mesh().
|
protected |
Referenced by AddGroup(), and SynchronizeGroups().
|
protected |
|
protected |
Referenced by GetAutoColor(), SetAutoColor(), and SMESH_Mesh().
|
protected |
modified since last total re-compute, issue 0020693
Referenced by Clear(), HasModificationsToDiscard(), SetIsModified(), ShapeToMesh(), and SMESH_Mesh().
|
protected |
|
protected |
Referenced by fillAncestorsMap(), GetAncestors(), and ShapeToMesh().
|
protected |
|
protected |
Referenced by CGNSToMesh(), Clear(), ClearLog(), MeshEditor_I::TPreviewMesh::Copy(), ExportDAT(), exportMEDCommmon(), ExportSTL(), ExportStructuredCGNS(), ExportUNV(), GetElementType(), GetHypotheses(), GetHypothesis(), GetHypothesisList(), GetLog(), GetShapeToMesh(), GetSubMesh(), GetSubMeshContaining(), GMFToMesh(), IsMainShape(), IsNotConformAllowed(), MEDToMesh(), Nb0DElements(), NbBalls(), NbBiQuadPrisms(), NbBiQuadQuadrangles(), NbBiQuadTriangles(), NbEdges(), NbFaces(), NbHexagonalPrisms(), NbHexas(), NbNodes(), NbPolygons(), NbPolyhedrons(), NbPrisms(), NbPyramids(), NbQuadPrisms(), NbQuadrangles(), NbSubMesh(), NbTetras(), NbTriangles(), NbTriQuadraticHexas(), NbVolumes(), NotifySubMeshesHypothesisModification(), ShapeToMesh(), SMESH_Mesh(), SMESH_Mesh_Test::SMESH_Mesh_Test(), STLToMesh(), SynchronizeGroups(), MeshEditor_I::TPreviewMesh::TPreviewMesh(), UNVToMesh(), and ~SMESH_Mesh().
|
protected |
Referenced by GetSubMesh(), and ShapeToMesh().
|
protected |
diagonal size of bounding box of shape to mesh
Referenced by GetShapeDiagonalSize(), ShapeToMesh(), and SMESH_Mesh().
|
protected |
|
protected |
Referenced by ClearMeshOrder(), GetMeshOrder(), IsOrderOK(), SetMeshOrder(), and SortByMeshOrder().