import"SMESH_Mesh.idl";
Public Member Functions | |
boolean | HasShapeToMesh () raises (SALOME::SALOME_Exception) |
Return true if there is a geometry to be meshed. More... | |
GEOM::GEOM_Object | GetShapeToMesh () raises (SALOME::SALOME_Exception) |
Get geom shape to mesh. More... | |
void | ReplaceShape (in GEOM::GEOM_Object theNewGeom) raises (SALOME::SALOME_Exception) |
Replaces a shape in the mesh. More... | |
boolean | IsLoaded () raises (SALOME::SALOME_Exception) |
Return false if the mesh is not yet fully loaded from the study file. More... | |
void | Load () raises (SALOME::SALOME_Exception) |
Load full mesh data from the study file. More... | |
void | Clear () raises (SALOME::SALOME_Exception) |
Remove all nodes and elements. More... | |
submesh_array | GetSubMeshes () raises (SALOME::SALOME_Exception) |
Get the list of sub-meshes existing in the mesh. More... | |
void | ClearSubMesh (in long ShapeID) raises (SALOME::SALOME_Exception) |
Remove all nodes and elements of submesh. More... | |
SMESH_subMesh | GetSubMesh (in GEOM::GEOM_Object aSubObject, in string name) raises (SALOME::SALOME_Exception) |
Get the subMesh object associated to a Sub-shape. More... | |
void | RemoveSubMesh (in SMESH_subMesh aSubMesh) raises (SALOME::SALOME_Exception) |
Remove a submesh. More... | |
SMESH_Group | CreateGroup (in ElementType elem_type, in string name) raises (SALOME::SALOME_Exception) |
Create a group. More... | |
SMESH_GroupOnGeom | CreateGroupFromGEOM (in ElementType elemType, in string name, in GEOM::GEOM_Object geomObject) raises (SALOME::SALOME_Exception) |
Create a group from geometry. More... | |
SMESH_GroupOnFilter | CreateGroupFromFilter (in ElementType elemType, in string name, in SMESH::Filter filter) raises (SALOME::SALOME_Exception) |
Create a group from filter. More... | |
void | RemoveGroup (in SMESH_GroupBase aGroup) raises (SALOME::SALOME_Exception) |
Remove a group. More... | |
void | RemoveGroupWithContents (in SMESH_GroupBase aGroup) raises (SALOME::SALOME_Exception) |
Remove group with its contents. More... | |
ListOfGroups | GetGroups () raises (SALOME::SALOME_Exception) |
Get the list of groups existing in the mesh. More... | |
long | NbGroups () raises (SALOME::SALOME_Exception) |
Get number of groups existing in the mesh. More... | |
SMESH_Group | UnionGroups (in SMESH_GroupBase aGroup1, in SMESH_GroupBase aGroup2, in string name) raises (SALOME::SALOME_Exception) |
Union of two groups New group is created. More... | |
SMESH_Group | UnionListOfGroups (in ListOfGroups aListOfGroups, in string name) raises (SALOME::SALOME_Exception) |
Union of list of groups New group is created. More... | |
SMESH_Group | IntersectGroups (in SMESH_GroupBase aGroup1, in SMESH_GroupBase aGroup2, in string name) raises (SALOME::SALOME_Exception) |
Intersection of two groups New group is created. More... | |
SMESH_Group | IntersectListOfGroups (in ListOfGroups aListOfGroups, in string name) raises (SALOME::SALOME_Exception) |
Intersection of list of groups New group is created. More... | |
SMESH_Group | CutGroups (in SMESH_GroupBase aMainGroup, in SMESH_GroupBase aToolGroup, in string name) raises (SALOME::SALOME_Exception) |
Cut of two groups New group is created. More... | |
SMESH_Group | CutListOfGroups (in ListOfGroups aMainGroups, in ListOfGroups aToolGroups, in string name) raises (SALOME::SALOME_Exception) |
Cut of lists of groups New group is created. More... | |
SMESH_Group | CreateDimGroup (in ListOfIDSources aListOfGroups, in ElementType anElemType, in string name, in NB_COMMON_NODES_ENUM nbCommonNodes, in boolean underlyingOnly) raises (SALOME::SALOME_Exception) |
Create a group of entities basing on nodes of other groups. More... | |
ListOfGroups | FaceGroupsSeparatedByEdges (in double sharpAngle, in boolean createEdges, in boolean useExistingEdges) raises (SALOME::SALOME_Exception) |
Distribute all faces of the mesh among groups using sharp edges and optionally existing 1D elements as group boundaries. More... | |
SMESH_Group | ConvertToStandalone (in SMESH_GroupBase theGroupOn) raises (SALOME::SALOME_Exception) |
Convert group on geometry or on filter into standalone group. More... | |
Hypothesis_Status | AddHypothesis (in GEOM::GEOM_Object aSubObject, in SMESH_Hypothesis anHyp, out string anErrorText) raises (SALOME::SALOME_Exception) |
Add hypothesis to the mesh, under a particular sub-shape (or the main shape itself) This method is only used to prepare the build of the mesh and store the algorithms and associated parameters. More... | |
Hypothesis_Status | RemoveHypothesis (in GEOM::GEOM_Object aSubObject, in SMESH_Hypothesis anHyp) raises (SALOME::SALOME_Exception) |
Remove an hypothesis previously added with AddHypothesis. More... | |
ListOfHypothesis | GetHypothesisList (in GEOM::GEOM_Object aSubObject) raises (SALOME::SALOME_Exception) |
Get the list of hypothesis added on a sub-shape. More... | |
log_array | GetLog (in boolean clearAfterGet) raises (SALOME::SALOME_Exception) |
Get the log of nodes and elements added or removed since previous clear of the log. More... | |
void | ClearLog () raises (SALOME::SALOME_Exception) |
Clear the log of nodes and elements added or removed since previous clear. More... | |
void | SetAutoColor (in boolean theAutoColor) raises (SALOME::SALOME_Exception) |
Toggle auto color mode on the object. More... | |
boolean | GetAutoColor () raises (SALOME::SALOME_Exception) |
Get flag of object's auto color mode. More... | |
long | GetId () |
Get the internal Id. More... | |
SMESH_MeshEditor | GetMeshEditor () raises (SALOME::SALOME_Exception) |
Obtain instance of SMESH_MeshEditor. More... | |
SMESH_MeshEditor | GetMeshEditPreviewer () raises (SALOME::SALOME_Exception) |
Return SMESH_MeshEditor that would not modify the mesh but fill MeshPreviewStruct. More... | |
boolean | HasModificationsToDiscard () raises (SALOME::SALOME_Exception) |
Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute. More... | |
boolean | HasDuplicatedGroupNamesMED () |
Check group names for duplications. More... | |
void | ExportMED (in string fileName, in boolean auto_groups, in long version, in boolean overwrite, in boolean autoDimension) raises (SALOME::SALOME_Exception) |
Export a Mesh to MED file. More... | |
long long | ExportMEDCoupling (in boolean auto_groups, in boolean autoDimension) raises (SALOME::SALOME_Exception) |
void | ExportPartToMED (in SMESH_IDSource meshPart, in string fileName, in boolean auto_groups, in long version, in boolean overwrite, in boolean autoDimension, in GEOM::ListOfFields fields, in string geomAssocFields, in double ZTolerance, in boolean saveNumbers) raises (SALOME::SALOME_Exception) |
Export a [part of] Mesh into a MED file @params. More... | |
long long | ExportPartToMEDCoupling (in SMESH_IDSource meshPart, in boolean auto_groups, in boolean autoDimension, in GEOM::ListOfFields fields, in string geomAssocFields, in double ZTolerance, in boolean saveNumbers) raises (SALOME::SALOME_Exception) |
string | GetVersionString (in long minor, in short nbDigits) |
Return string representation of a MED file version comprising nbDigits. More... | |
long_array | GetMEDVersionsCompatibleForAppend () |
Return the list of med versions compatibles for write/append, encoded in 10*major+minor (for instance, code for med 3.2.1 is 32) More... | |
void | ExportDAT (in string file, in boolean renumer) raises (SALOME::SALOME_Exception) |
Export Mesh to different Formats (UNV supported version is I-DEAS 10) More... | |
void | ExportUNV (in string file, in boolean renumer) raises (SALOME::SALOME_Exception) |
void | ExportSTL (in string file, in boolean isascii) raises (SALOME::SALOME_Exception) |
void | ExportCGNS (in SMESH_IDSource meshPart, in string file, in boolean overwrite, in boolean groupElemsByType) raises (SALOME::SALOME_Exception) |
void | ExportGMF (in SMESH_IDSource meshPart, in string file, in boolean withRequiredGroups) raises (SALOME::SALOME_Exception) |
void | ExportPartToDAT (in SMESH_IDSource meshPart, in string file, in boolean renumer) raises (SALOME::SALOME_Exception) |
void | ExportPartToUNV (in SMESH_IDSource meshPart, in string file, in boolean renumer) raises (SALOME::SALOME_Exception) |
void | ExportPartToSTL (in SMESH_IDSource meshPart, in string file, in boolean isascii) raises (SALOME::SALOME_Exception) |
double | GetComputeProgress () |
Return computation progress [0.,1]. More... | |
smIdType | NbNodes () raises (SALOME::SALOME_Exception) |
Get information about mesh contents. More... | |
smIdType | NbElements () raises (SALOME::SALOME_Exception) |
smIdType | Nb0DElements () raises (SALOME::SALOME_Exception) |
smIdType | NbBalls () raises (SALOME::SALOME_Exception) |
smIdType | NbEdges () raises (SALOME::SALOME_Exception) |
smIdType | NbEdgesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbFaces () raises (SALOME::SALOME_Exception) |
smIdType | NbFacesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbTriangles () raises (SALOME::SALOME_Exception) |
smIdType | NbTrianglesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbBiQuadTriangles () raises (SALOME::SALOME_Exception) |
smIdType | NbQuadrangles () raises (SALOME::SALOME_Exception) |
smIdType | NbQuadranglesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbBiQuadQuadrangles () raises (SALOME::SALOME_Exception) |
smIdType | NbPolygons () raises (SALOME::SALOME_Exception) |
smIdType | NbPolygonsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbVolumes () raises (SALOME::SALOME_Exception) |
smIdType | NbVolumesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbTetras () raises (SALOME::SALOME_Exception) |
smIdType | NbTetrasOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbHexas () raises (SALOME::SALOME_Exception) |
smIdType | NbHexasOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbTriQuadraticHexas () raises (SALOME::SALOME_Exception) |
smIdType | NbPyramids () raises (SALOME::SALOME_Exception) |
smIdType | NbPyramidsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbPrisms () raises (SALOME::SALOME_Exception) |
smIdType | NbPrismsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
smIdType | NbHexagonalPrisms () raises (SALOME::SALOME_Exception) |
smIdType | NbPolyhedrons () raises (SALOME::SALOME_Exception) |
smIdType | NbSubMesh () raises (SALOME::SALOME_Exception) |
smIdType_array | GetElementsId () raises (SALOME::SALOME_Exception) |
smIdType_array | GetElementsByType (in ElementType theType) raises (SALOME::SALOME_Exception) |
smIdType_array | GetNodesId () raises (SALOME::SALOME_Exception) |
ElementType | GetElementType (in smIdType id, in boolean iselem) raises (SALOME::SALOME_Exception) |
Returns type of mesh element. More... | |
EntityType | GetElementGeomType (in smIdType id) raises (SALOME::SALOME_Exception) |
GeometryType | GetElementShape (in smIdType id) raises (SALOME::SALOME_Exception) |
smIdType_array | GetSubMeshElementsId (in long ShapeID) raises (SALOME::SALOME_Exception) |
smIdType_array | GetSubMeshNodesId (in long ShapeID, in boolean all) raises (SALOME::SALOME_Exception) |
ElementType | GetSubMeshElementType (in long ShapeID) raises (SALOME::SALOME_Exception) |
boolean | IsUnorderedSubMesh (in long submeshID) |
Methods to set meshing order of submeshes. More... | |
submesh_array_array | GetMeshOrder () |
Return submesh objects list in meshing order. More... | |
boolean | SetMeshOrder (in submesh_array_array theSubMeshArray) |
Set submesh object order. More... | |
string | Dump () |
Get mesh description. More... | |
long long | GetMeshPtr () |
Get mesh pointer. More... | |
double_array | GetNodeXYZ (in smIdType id) |
Get XYZ coordinates of node as list of double If there is not node for given ID - returns empty list. More... | |
smIdType_array | GetNodeInverseElements (in smIdType id, in ElementType elemType) |
For given node returns list of IDs of inverse elements If there is not node for given ID - returns empty list. More... | |
NodePosition | GetNodePosition (in smIdType NodeID) |
Return position of a node on shape. More... | |
ElementPosition | GetElementPosition (in smIdType ElemID) |
Return position of an element on shape. More... | |
long | GetShapeID (in smIdType id) |
If given element is node returns IDs of shape from position If there is not node for given ID - returns -1. More... | |
long | GetShapeIDForElem (in smIdType id) |
For given element returns ID of result shape after ::FindShape() from SMESH_MeshEditor If there is not element for given ID - returns -1. More... | |
short | GetElemNbNodes (in smIdType id) |
Returns number of nodes for given element If there is not element for given ID - returns -1. More... | |
smIdType_array | GetElemNodes (in smIdType id) |
Returns IDs of nodes of given element. More... | |
smIdType | GetElemNode (in smIdType id, in short index) |
Returns ID of node by given index for given element If there is not element for given ID - returns -1 If there is not node for given index - returns -2. More... | |
boolean | IsMediumNode (in smIdType ide, in smIdType idn) |
Returns true if given node is medium node in given quadratic element. More... | |
boolean | IsMediumNodeOfAnyElem (in smIdType idn, in ElementType elem_type) |
Returns true if given node is medium node in one of quadratic elements. More... | |
long | ElemNbEdges (in smIdType id) |
Returns number of edges for given element. More... | |
long | ElemNbFaces (in smIdType id) |
Returns number of faces for given element. More... | |
smIdType_array | GetElemFaceNodes (in smIdType elemId, in short faceIndex) |
Returns nodes of given face (counted from zero) for given volumic element. More... | |
double_array | GetFaceNormal (in long faceId, in boolean normalized) |
Returns three components of normal of given mesh face (or an empty array in KO case) More... | |
smIdType | FindElementByNodes (in smIdType_array nodes) |
Returns an element based on all given nodes. More... | |
smIdType_array | GetElementsByNodes (in smIdType_array nodes, in ElementType elem_type) |
Return elements including all given nodes. More... | |
boolean | IsPoly (in smIdType id) |
Returns true if given element is polygon. More... | |
boolean | IsQuadratic (in smIdType id) |
Returns true if given element is quadratic. More... | |
double | GetBallDiameter (in smIdType id) |
Returns diameter of a ball discrete element or zero in case of an invalid id. More... | |
double_array | BaryCenter (in smIdType id) |
Returns XYZ coordinates of bary center for given element as list of double If there is not element for given ID - returns empty list. More... | |
MedFileInfo | GetMEDFileInfo () |
Gets information about imported MED file. More... | |
void | SetParameters (in string theParameters) |
Sets list of notebook variables used for Mesh operations separated by ":" symbol. More... | |
string | GetParameters () |
Returns list of notebook variables used for Mesh operations separated by ":" symbol. More... | |
string_array | GetLastParameters () |
Returns list of notebook variables used for last Mesh operation. More... | |
smIdType_array | GetIDs () |
Returns a sequence of all element IDs. More... | |
smIdType_array | GetMeshInfo () |
Returns number of mesh elements of each EntityType. More... | |
smIdType_array | GetNbElementsByType () |
Returns number of mesh elements of each ElementType. More... | |
array_of_ElementType | GetTypes () |
Returns types of elements it contains. More... | |
SMESH_Mesh | GetMesh () |
Returns the mesh. More... | |
boolean | IsMeshInfoCorrect () |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study. More... | |
SALOMEDS::TMPFile | GetVtkUgStream () |
Returns mesh unstructed grid information. More... | |
Hypothesis_Status SMESH::SMESH_Mesh::AddHypothesis | ( | in GEOM::GEOM_Object | aSubObject, |
in SMESH_Hypothesis | anHyp, | ||
out string | anErrorText | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Add hypothesis to the mesh, under a particular sub-shape (or the main shape itself) This method is only used to prepare the build of the mesh and store the algorithms and associated parameters.
Actual job of meshing the shape is done by SMESH_Gen::Compute() @params
double_array SMESH::SMESH_Mesh::BaryCenter | ( | in smIdType | id | ) |
Returns XYZ coordinates of bary center for given element as list of double If there is not element for given ID - returns empty list.
void SMESH::SMESH_Mesh::Clear | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Remove all nodes and elements.
void SMESH::SMESH_Mesh::ClearLog | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Clear the log of nodes and elements added or removed since previous clear.
Must be used immediately after GetLog if clearAfterGet is false.
void SMESH::SMESH_Mesh::ClearSubMesh | ( | in long | ShapeID | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Remove all nodes and elements of submesh.
SMESH_Group SMESH::SMESH_Mesh::ConvertToStandalone | ( | in SMESH_GroupBase | theGroupOn | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Convert group on geometry or on filter into standalone group.
SMESH_Group SMESH::SMESH_Mesh::CreateDimGroup | ( | in ListOfIDSources | aListOfGroups, |
in ElementType | anElemType, | ||
in string | name, | ||
in NB_COMMON_NODES_ENUM | nbCommonNodes, | ||
in boolean | underlyingOnly | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Create a group of entities basing on nodes of other groups.
[in] | aListOfGroups | - list of either groups, sub-meshes or filters. |
[in] | anElemType | - a type of elements to include to the new group. |
[in] | name | - a name of the new group. |
[in] | nbCommonNodes | - criterion of inclusion of an element to the new group. |
[in] | underlyingOnly | - if True , an element is included to the new group provided that it is based on nodes of an element of aListOfGroups |
SMESH_Group SMESH::SMESH_Mesh::CreateGroup | ( | in ElementType | elem_type, |
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Create a group.
SMESH_GroupOnFilter SMESH::SMESH_Mesh::CreateGroupFromFilter | ( | in ElementType | elemType, |
in string | name, | ||
in SMESH::Filter | filter | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Create a group from filter.
SMESH_GroupOnGeom SMESH::SMESH_Mesh::CreateGroupFromGEOM | ( | in ElementType | elemType, |
in string | name, | ||
in GEOM::GEOM_Object | geomObject | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Create a group from geometry.
SMESH_Group SMESH::SMESH_Mesh::CutGroups | ( | in SMESH_GroupBase | aMainGroup, |
in SMESH_GroupBase | aToolGroup, | ||
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Cut of two groups New group is created.
All mesh elements that are present in main group but do not present in tool group are added to the new one
SMESH_Group SMESH::SMESH_Mesh::CutListOfGroups | ( | in ListOfGroups | aMainGroups, |
in ListOfGroups | aToolGroups, | ||
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Cut of lists of groups New group is created.
All mesh elements that are present in main groups but do not present in tool groups are added to the new one
string SMESH::SMESH_Mesh::Dump | ( | ) |
Get mesh description.
long SMESH::SMESH_Mesh::ElemNbEdges | ( | in smIdType | id | ) |
Returns number of edges for given element.
long SMESH::SMESH_Mesh::ElemNbFaces | ( | in smIdType | id | ) |
Returns number of faces for given element.
void SMESH::SMESH_Mesh::ExportCGNS | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | overwrite, | ||
in boolean | groupElemsByType | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportDAT | ( | in string | file, |
in boolean | renumer | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Export Mesh to different Formats (UNV supported version is I-DEAS 10)
void SMESH::SMESH_Mesh::ExportGMF | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | withRequiredGroups | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportMED | ( | in string | fileName, |
in boolean | auto_groups, | ||
in long | version, | ||
in boolean | overwrite, | ||
in boolean | autoDimension | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Export a Mesh to MED file.
@params
true
, a space dimension of a MED mesh can be either
long long SMESH::SMESH_Mesh::ExportMEDCoupling | ( | in boolean | auto_groups, |
in boolean | autoDimension | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportPartToDAT | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | renumer | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportPartToMED | ( | in SMESH_IDSource | meshPart, |
in string | fileName, | ||
in boolean | auto_groups, | ||
in long | version, | ||
in boolean | overwrite, | ||
in boolean | autoDimension, | ||
in GEOM::ListOfFields | fields, | ||
in string | geomAssocFields, | ||
in double | ZTolerance, | ||
in boolean | saveNumbers | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Export a [part of] Mesh into a MED file @params.
True
, a space dimension for export is defined by mesh configuration; for example a planar mesh lying on XOY plane will be exported as a mesh in 2D space. If autoDimension == False
, the space dimension is 3.long long SMESH::SMESH_Mesh::ExportPartToMEDCoupling | ( | in SMESH_IDSource | meshPart, |
in boolean | auto_groups, | ||
in boolean | autoDimension, | ||
in GEOM::ListOfFields | fields, | ||
in string | geomAssocFields, | ||
in double | ZTolerance, | ||
in boolean | saveNumbers | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportPartToSTL | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | isascii | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportPartToUNV | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | renumer | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportSTL | ( | in string | file, |
in boolean | isascii | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
void SMESH::SMESH_Mesh::ExportUNV | ( | in string | file, |
in boolean | renumer | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
ListOfGroups SMESH::SMESH_Mesh::FaceGroupsSeparatedByEdges | ( | in double | sharpAngle, |
in boolean | createEdges, | ||
in boolean | useExistingEdges | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Distribute all faces of the mesh among groups using sharp edges and optionally existing 1D elements as group boundaries.
[in] | sharpAngle | - edge is considered sharp if an angle between normals of adjacent faces is more than sharpAngle in degrees. |
[in] | createEdges | - to create 1D elements for detected sharp edges. |
[in] | useExistingEdges | - to use existing edges as group boundaries |
smIdType SMESH::SMESH_Mesh::FindElementByNodes | ( | in smIdType_array | nodes | ) |
Returns an element based on all given nodes.
boolean SMESH::SMESH_Mesh::GetAutoColor | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get flag of object's auto color mode.
double SMESH::SMESH_Mesh::GetBallDiameter | ( | in smIdType | id | ) |
Returns diameter of a ball discrete element or zero in case of an invalid id.
double SMESH::SMESH_Mesh::GetComputeProgress | ( | ) |
Return computation progress [0.,1].
EntityType SMESH::SMESH_Mesh::GetElementGeomType | ( | in smIdType | id | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
ElementPosition SMESH::SMESH_Mesh::GetElementPosition | ( | in smIdType | ElemID | ) |
Return position of an element on shape.
smIdType_array SMESH::SMESH_Mesh::GetElementsByNodes | ( | in smIdType_array | nodes, |
in ElementType | elem_type | ||
) |
Return elements including all given nodes.
smIdType_array SMESH::SMESH_Mesh::GetElementsByType | ( | in ElementType | theType | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
GeometryType SMESH::SMESH_Mesh::GetElementShape | ( | in smIdType | id | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType_array SMESH::SMESH_Mesh::GetElementsId | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
ElementType SMESH::SMESH_Mesh::GetElementType | ( | in smIdType | id, |
in boolean | iselem | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Returns type of mesh element.
smIdType_array SMESH::SMESH_Mesh::GetElemFaceNodes | ( | in smIdType | elemId, |
in short | faceIndex | ||
) |
Returns nodes of given face (counted from zero) for given volumic element.
short SMESH::SMESH_Mesh::GetElemNbNodes | ( | in smIdType | id | ) |
Returns number of nodes for given element If there is not element for given ID - returns -1.
smIdType SMESH::SMESH_Mesh::GetElemNode | ( | in smIdType | id, |
in short | index | ||
) |
Returns ID of node by given index for given element If there is not element for given ID - returns -1 If there is not node for given index - returns -2.
smIdType_array SMESH::SMESH_Mesh::GetElemNodes | ( | in smIdType | id | ) |
Returns IDs of nodes of given element.
double_array SMESH::SMESH_Mesh::GetFaceNormal | ( | in long | faceId, |
in boolean | normalized | ||
) |
Returns three components of normal of given mesh face (or an empty array in KO case)
ListOfGroups SMESH::SMESH_Mesh::GetGroups | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get the list of groups existing in the mesh.
ListOfHypothesis SMESH::SMESH_Mesh::GetHypothesisList | ( | in GEOM::GEOM_Object | aSubObject | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Get the list of hypothesis added on a sub-shape.
long SMESH::SMESH_Mesh::GetId | ( | ) |
Get the internal Id.
|
inherited |
Returns a sequence of all element IDs.
string_array SMESH::SMESH_Mesh::GetLastParameters | ( | ) |
Returns list of notebook variables used for last Mesh operation.
log_array SMESH::SMESH_Mesh::GetLog | ( | in boolean | clearAfterGet | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Get the log of nodes and elements added or removed since previous clear of the log.
@params
MedFileInfo SMESH::SMESH_Mesh::GetMEDFileInfo | ( | ) |
Gets information about imported MED file.
long_array SMESH::SMESH_Mesh::GetMEDVersionsCompatibleForAppend | ( | ) |
Return the list of med versions compatibles for write/append, encoded in 10*major+minor (for instance, code for med 3.2.1 is 32)
|
inherited |
Returns the mesh.
SMESH_MeshEditor SMESH::SMESH_Mesh::GetMeshEditor | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Obtain instance of SMESH_MeshEditor.
SMESH_MeshEditor SMESH::SMESH_Mesh::GetMeshEditPreviewer | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Return SMESH_MeshEditor that would not modify the mesh but fill MeshPreviewStruct.
|
inherited |
Returns number of mesh elements of each EntityType.
submesh_array_array SMESH::SMESH_Mesh::GetMeshOrder | ( | ) |
Return submesh objects list in meshing order.
long long SMESH::SMESH_Mesh::GetMeshPtr | ( | ) |
Get mesh pointer.
|
inherited |
Returns number of mesh elements of each ElementType.
smIdType_array SMESH::SMESH_Mesh::GetNodeInverseElements | ( | in smIdType | id, |
in ElementType | elemType | ||
) |
For given node returns list of IDs of inverse elements If there is not node for given ID - returns empty list.
NodePosition SMESH::SMESH_Mesh::GetNodePosition | ( | in smIdType | NodeID | ) |
Return position of a node on shape.
smIdType_array SMESH::SMESH_Mesh::GetNodesId | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
double_array SMESH::SMESH_Mesh::GetNodeXYZ | ( | in smIdType | id | ) |
Get XYZ coordinates of node as list of double If there is not node for given ID - returns empty list.
string SMESH::SMESH_Mesh::GetParameters | ( | ) |
Returns list of notebook variables used for Mesh operations separated by ":" symbol.
long SMESH::SMESH_Mesh::GetShapeID | ( | in smIdType | id | ) |
If given element is node returns IDs of shape from position If there is not node for given ID - returns -1.
long SMESH::SMESH_Mesh::GetShapeIDForElem | ( | in smIdType | id | ) |
For given element returns ID of result shape after ::FindShape() from SMESH_MeshEditor If there is not element for given ID - returns -1.
GEOM::GEOM_Object SMESH::SMESH_Mesh::GetShapeToMesh | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get geom shape to mesh.
A result should not be nil. Use HasShapeToMesh() to know if a returned shape
SMESH_subMesh SMESH::SMESH_Mesh::GetSubMesh | ( | in GEOM::GEOM_Object | aSubObject, |
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Get the subMesh object associated to a Sub-shape.
The subMesh object gives access to nodes and elements IDs. SubMesh will be used instead of Sub-shape in a next idl version to address a specific subMesh...
Referenced by StdMeshers_Cartesian_3D::Compute(), and StdMeshers_Cartesian_3D::setSubmeshesComputed().
smIdType_array SMESH::SMESH_Mesh::GetSubMeshElementsId | ( | in long | ShapeID | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
ElementType SMESH::SMESH_Mesh::GetSubMeshElementType | ( | in long | ShapeID | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
submesh_array SMESH::SMESH_Mesh::GetSubMeshes | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get the list of sub-meshes existing in the mesh.
smIdType_array SMESH::SMESH_Mesh::GetSubMeshNodesId | ( | in long | ShapeID, |
in boolean | all | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
|
inherited |
Returns types of elements it contains.
It's empty if the SMESH_IDSource contains no IDs
string SMESH::SMESH_Mesh::GetVersionString | ( | in long | minor, |
in short | nbDigits | ||
) |
Return string representation of a MED file version comprising nbDigits.
|
inherited |
Returns mesh unstructed grid information.
boolean SMESH::SMESH_Mesh::HasDuplicatedGroupNamesMED | ( | ) |
Check group names for duplications.
Consider maximum group name length stored in MED file.
boolean SMESH::SMESH_Mesh::HasModificationsToDiscard | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Return true if the mesh has been edited since a total re-compute and those modifications may prevent successful partial re-compute.
boolean SMESH::SMESH_Mesh::HasShapeToMesh | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Return true if there is a geometry to be meshed.
SMESH_Group SMESH::SMESH_Mesh::IntersectGroups | ( | in SMESH_GroupBase | aGroup1, |
in SMESH_GroupBase | aGroup2, | ||
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Intersection of two groups New group is created.
All mesh elements that are present in both initial groups are added to the new one.
SMESH_Group SMESH::SMESH_Mesh::IntersectListOfGroups | ( | in ListOfGroups | aListOfGroups, |
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Intersection of list of groups New group is created.
All mesh elements that are present in all initial groups simultaneously are added to the new one.
boolean SMESH::SMESH_Mesh::IsLoaded | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Return false if the mesh is not yet fully loaded from the study file.
boolean SMESH::SMESH_Mesh::IsMediumNode | ( | in smIdType | ide, |
in smIdType | idn | ||
) |
Returns true if given node is medium node in given quadratic element.
boolean SMESH::SMESH_Mesh::IsMediumNodeOfAnyElem | ( | in smIdType | idn, |
in ElementType | elem_type | ||
) |
Returns true if given node is medium node in one of quadratic elements.
|
inherited |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.
boolean SMESH::SMESH_Mesh::IsPoly | ( | in smIdType | id | ) |
Returns true if given element is polygon.
boolean SMESH::SMESH_Mesh::IsQuadratic | ( | in smIdType | id | ) |
Returns true if given element is quadratic.
boolean SMESH::SMESH_Mesh::IsUnorderedSubMesh | ( | in long | submeshID | ) |
Methods to set meshing order of submeshes.
Return true
if a meshing order not yet set for a concurrent sub-mesh
void SMESH::SMESH_Mesh::Load | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Load full mesh data from the study file.
smIdType SMESH::SMESH_Mesh::Nb0DElements | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbBalls | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbBiQuadQuadrangles | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbBiQuadTriangles | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbEdges | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbEdgesOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbElements | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbFaces | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbFacesOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
long SMESH::SMESH_Mesh::NbGroups | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get number of groups existing in the mesh.
smIdType SMESH::SMESH_Mesh::NbHexagonalPrisms | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbHexas | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbHexasOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbNodes | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Get information about mesh contents.
smIdType SMESH::SMESH_Mesh::NbPolygons | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbPolygonsOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbPolyhedrons | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbPrisms | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbPrismsOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbPyramids | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbPyramidsOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbQuadrangles | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbQuadranglesOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbSubMesh | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbTetras | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbTetrasOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbTriangles | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbTrianglesOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
smIdType SMESH::SMESH_Mesh::NbTriQuadraticHexas | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbVolumes | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
smIdType SMESH::SMESH_Mesh::NbVolumesOfOrder | ( | in ElementOrder | order | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
void SMESH::SMESH_Mesh::RemoveGroup | ( | in SMESH_GroupBase | aGroup | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Remove a group.
void SMESH::SMESH_Mesh::RemoveGroupWithContents | ( | in SMESH_GroupBase | aGroup | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Remove group with its contents.
Hypothesis_Status SMESH::SMESH_Mesh::RemoveHypothesis | ( | in GEOM::GEOM_Object | aSubObject, |
in SMESH_Hypothesis | anHyp | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Remove an hypothesis previously added with AddHypothesis.
void SMESH::SMESH_Mesh::RemoveSubMesh | ( | in SMESH_subMesh | aSubMesh | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Remove a submesh.
void SMESH::SMESH_Mesh::ReplaceShape | ( | in GEOM::GEOM_Object | theNewGeom | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Replaces a shape in the mesh.
void SMESH::SMESH_Mesh::SetAutoColor | ( | in boolean | theAutoColor | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
Toggle auto color mode on the object.
@params
boolean SMESH::SMESH_Mesh::SetMeshOrder | ( | in submesh_array_array | theSubMeshArray | ) |
Set submesh object order.
void SMESH::SMESH_Mesh::SetParameters | ( | in string | theParameters | ) |
Sets list of notebook variables used for Mesh operations separated by ":" symbol.
theParameters | is a string containing the notebook variables |
SMESH_Group SMESH::SMESH_Mesh::UnionGroups | ( | in SMESH_GroupBase | aGroup1, |
in SMESH_GroupBase | aGroup2, | ||
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Union of two groups New group is created.
All mesh elements that are present in initial groups are added to the new one
SMESH_Group SMESH::SMESH_Mesh::UnionListOfGroups | ( | in ListOfGroups | aListOfGroups, |
in string | name | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
Union of list of groups New group is created.
All mesh elements that are present in initial groups are added to the new one