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... | |
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... | |
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 previouly 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... | |
long | GetStudyId () |
Get the study 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 | ExportToMEDX (in string file, in boolean auto_groups, in MED_VERSION version, in boolean overwrite, in boolean autoDimension) raises (SALOME::SALOME_Exception) |
Export Mesh to a MED Format file . More... | |
void | ExportPartToMED (in SMESH_IDSource meshPart, in string file, in boolean auto_groups, in MED_VERSION version, in boolean overwrite, in boolean autoDimension, in GEOM::ListOfFields fields, in string geomAssocFields) raises (SALOME::SALOME_Exception) |
Export a [part of] Mesh into a MED file . More... | |
void | ExportToMED (in string file, in boolean auto_groups, in MED_VERSION theVersion) raises (SALOME::SALOME_Exception) |
Export Mesh to a MED Format file Works, just the same as ExportToMEDX, with overwrite parameter equal to true. More... | |
void | ExportMED (in string file, in boolean auto_groups) raises (SALOME::SALOME_Exception) |
Export Mesh to MED_V2_1 MED format Works, just the same as ExportToMEDX with MED_VERSION parameter equal to MED_V2_1 and overwrite parameter equal to true The method is kept in order to support old functionality. More... | |
void | ExportSAUV (in string file, in boolean auto_groups) raises (SALOME::SALOME_Exception) |
Export Mesh to SAUV formatted file Write a temporary med file and use med2sauv. More... | |
string | GetVersionString (in MED_VERSION version, in short nbDigits) |
Return string representation of a MED file version comprising nbDigits. More... | |
void | ExportDAT (in string file) raises (SALOME::SALOME_Exception) |
Export Mesh to different Formats (UNV supported version is I-DEAS 10) More... | |
void | ExportUNV (in string file) 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) 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) raises (SALOME::SALOME_Exception) |
void | ExportPartToUNV (in SMESH_IDSource meshPart, in string file) 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... | |
long | NbNodes () raises (SALOME::SALOME_Exception) |
Get informations about mesh contents. More... | |
long | NbElements () raises (SALOME::SALOME_Exception) |
long | Nb0DElements () raises (SALOME::SALOME_Exception) |
long | NbBalls () raises (SALOME::SALOME_Exception) |
long | NbEdges () raises (SALOME::SALOME_Exception) |
long | NbEdgesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbFaces () raises (SALOME::SALOME_Exception) |
long | NbFacesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbTriangles () raises (SALOME::SALOME_Exception) |
long | NbTrianglesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbBiQuadTriangles () raises (SALOME::SALOME_Exception) |
long | NbQuadrangles () raises (SALOME::SALOME_Exception) |
long | NbQuadranglesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbBiQuadQuadrangles () raises (SALOME::SALOME_Exception) |
long | NbPolygons () raises (SALOME::SALOME_Exception) |
long | NbPolygonsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbVolumes () raises (SALOME::SALOME_Exception) |
long | NbVolumesOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbTetras () raises (SALOME::SALOME_Exception) |
long | NbTetrasOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbHexas () raises (SALOME::SALOME_Exception) |
long | NbHexasOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbTriQuadraticHexas () raises (SALOME::SALOME_Exception) |
long | NbPyramids () raises (SALOME::SALOME_Exception) |
long | NbPyramidsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbPrisms () raises (SALOME::SALOME_Exception) |
long | NbPrismsOfOrder (in ElementOrder order) raises (SALOME::SALOME_Exception) |
long | NbHexagonalPrisms () raises (SALOME::SALOME_Exception) |
long | NbPolyhedrons () raises (SALOME::SALOME_Exception) |
long | NbSubMesh () raises (SALOME::SALOME_Exception) |
long_array | GetElementsId () raises (SALOME::SALOME_Exception) |
long_array | GetElementsByType (in ElementType theType) raises (SALOME::SALOME_Exception) |
long_array | GetNodesId () raises (SALOME::SALOME_Exception) |
ElementType | GetElementType (in long id, in boolean iselem) raises (SALOME::SALOME_Exception) |
Returns type of mesh element. More... | |
EntityType | GetElementGeomType (in long id) raises (SALOME::SALOME_Exception) |
GeometryType | GetElementShape (in long id) raises (SALOME::SALOME_Exception) |
long_array | GetSubMeshElementsId (in long ShapeID) raises (SALOME::SALOME_Exception) |
long_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 long id) |
Get XYZ coordinates of node as list of double If there is not node for given ID - returns empty list. More... | |
long_array | GetNodeInverseElements (in long id) |
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 long NodeID) |
Return position of a node on shape. More... | |
ElementPosition | GetElementPosition (in long ElemID) |
Return position of an element on shape. More... | |
long | GetShapeID (in long 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 long 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... | |
long | GetElemNbNodes (in long id) |
Returns number of nodes for given element If there is not element for given ID - returns -1. More... | |
long_array | GetElemNodes (in long id) |
Returns IDs of nodes of given element. More... | |
long | GetElemNode (in long id, in long 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 long ide, in long idn) |
Returns true if given node is medium node in given quadratic element. More... | |
boolean | IsMediumNodeOfAnyElem (in long idn, in ElementType elem_type) |
Returns true if given node is medium node in one of quadratic elements. More... | |
long | ElemNbEdges (in long id) |
Returns number of edges for given element. More... | |
long | ElemNbFaces (in long id) |
Returns number of faces for given element. More... | |
long_array | GetElemFaceNodes (in long 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... | |
long | FindElementByNodes (in long_array nodes) |
Returns an element based on all given nodes. More... | |
boolean | IsPoly (in long id) |
Returns true if given element is polygon. More... | |
boolean | IsQuadratic (in long id) |
Returns true if given element is quadratic. More... | |
double | GetBallDiameter (in long id) |
Returns diameter of a ball discrete element or zero in case of an invalid id. More... | |
double_array | BaryCenter (in long 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... | |
long_array | GetIDs () |
Returns a sequence of all element IDs. More... | |
long_array | GetMeshInfo () |
Returns number of mesh elements of each EntityType. More... | |
long_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()
double_array SMESH::SMESH_Mesh::BaryCenter | ( | in long | 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_Mesh::Clear | ( | ) | raises (SALOME::SALOME_Exception) |
Remove all nodes and elements.
References SMESH_subMesh::CHECK_COMPUTE_STATE, and SMESH_subMesh::CLEAN.
void 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 long | id | ) |
Returns number of edges for given element.
long SMESH::SMESH_Mesh::ElemNbFaces | ( | in long | id | ) |
Returns number of faces for given element.
void SMESH::SMESH_Mesh::ExportCGNS | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | overwrite | ||
) | raises (SALOME::SALOME_Exception) |
void SMESH::SMESH_Mesh::ExportDAT | ( | in string | file | ) | 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 | file, |
in boolean | auto_groups | ||
) | raises (SALOME::SALOME_Exception) |
Export Mesh to MED_V2_1 MED format Works, just the same as ExportToMEDX with MED_VERSION parameter equal to MED_V2_1 and overwrite parameter equal to true The method is kept in order to support old functionality.
void SMESH::SMESH_Mesh::ExportPartToDAT | ( | in SMESH_IDSource | meshPart, |
in string | file | ||
) | raises (SALOME::SALOME_Exception) |
void SMESH::SMESH_Mesh::ExportPartToMED | ( | in SMESH_IDSource | meshPart, |
in string | file, | ||
in boolean | auto_groups, | ||
in MED_VERSION | version, | ||
in boolean | overwrite, | ||
in boolean | autoDimension, | ||
in GEOM::ListOfFields | fields, | ||
in string | geomAssocFields | ||
) | raises (SALOME::SALOME_Exception) |
Export a [part of] Mesh into a MED file .
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.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 | ||
) | raises (SALOME::SALOME_Exception) |
void SMESH::SMESH_Mesh::ExportSAUV | ( | in string | file, |
in boolean | auto_groups | ||
) | raises (SALOME::SALOME_Exception) |
Export Mesh to SAUV formatted file Write a temporary med file and use med2sauv.
void SMESH::SMESH_Mesh::ExportSTL | ( | in string | file, |
in boolean | isascii | ||
) | raises (SALOME::SALOME_Exception) |
void SMESH::SMESH_Mesh::ExportToMED | ( | in string | file, |
in boolean | auto_groups, | ||
in MED_VERSION | theVersion | ||
) | raises (SALOME::SALOME_Exception) |
Export Mesh to a MED Format file Works, just the same as ExportToMEDX, with overwrite parameter equal to true.
The method is kept in order to support old functionality
void SMESH::SMESH_Mesh::ExportToMEDX | ( | in string | file, |
in boolean | auto_groups, | ||
in MED_VERSION | version, | ||
in boolean | overwrite, | ||
in boolean | autoDimension | ||
) | raises (SALOME::SALOME_Exception) |
Export Mesh to a MED Format file .
true
, a space dimension of a MED mesh can be eitherfalse
, the space dimension is always 3. void SMESH::SMESH_Mesh::ExportUNV | ( | in string | file | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::FindElementByNodes | ( | in long_array | nodes | ) |
Returns an element based on all given nodes.
bool SMESH_Mesh::GetAutoColor | ( | ) | raises (SALOME::SALOME_Exception) |
Get flag of object's auto color mode.
double SMESH::SMESH_Mesh::GetBallDiameter | ( | in long | 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 long | id | ) | raises (SALOME::SALOME_Exception) |
ElementPosition SMESH::SMESH_Mesh::GetElementPosition | ( | in long | ElemID | ) |
Return position of an element on shape.
long_array SMESH::SMESH_Mesh::GetElementsByType | ( | in ElementType | theType | ) | raises (SALOME::SALOME_Exception) |
GeometryType SMESH::SMESH_Mesh::GetElementShape | ( | in long | id | ) | raises (SALOME::SALOME_Exception) |
long_array SMESH::SMESH_Mesh::GetElementsId | ( | ) | raises (SALOME::SALOME_Exception) |
ElementType SMESH::SMESH_Mesh::GetElementType | ( | in long | id, |
in boolean | iselem | ||
) | raises (SALOME::SALOME_Exception) |
Returns type of mesh element.
long_array SMESH::SMESH_Mesh::GetElemFaceNodes | ( | in long | elemId, |
in short | faceIndex | ||
) |
Returns nodes of given face (counted from zero) for given volumic element.
long SMESH::SMESH_Mesh::GetElemNbNodes | ( | in long | id | ) |
Returns number of nodes for given element If there is not element for given ID - returns -1.
long SMESH::SMESH_Mesh::GetElemNode | ( | in long | id, |
in long | 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.
long_array SMESH::SMESH_Mesh::GetElemNodes | ( | in long | 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.
MedFileInfo SMESH::SMESH_Mesh::GetMEDFileInfo | ( | ) |
Gets information about imported MED file.
|
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.
long_array SMESH::SMESH_Mesh::GetNodeInverseElements | ( | in long | id | ) |
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 long | NodeID | ) |
Return position of a node on shape.
long_array SMESH::SMESH_Mesh::GetNodesId | ( | ) | raises (SALOME::SALOME_Exception) |
double_array SMESH::SMESH_Mesh::GetNodeXYZ | ( | in long | 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 long | 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 long | 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
long SMESH::SMESH_Mesh::GetStudyId | ( | ) |
Get the study Id.
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...
long_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.
long_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 MED_VERSION | version, |
in short | nbDigits | ||
) |
Return string representation of a MED file version comprising nbDigits.
|
inherited |
Returns mesh unstructed grid information.
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 SMESH::SMESH_GroupBase::GetName(), SMESH::SMESH_GroupBase::GetType(), MAX_MED_GROUP_NAME_LENGTH, and second.
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 long | ide, |
in long | idn | ||
) |
Returns true if given node is medium node in given quadratic element.
boolean SMESH::SMESH_Mesh::IsMediumNodeOfAnyElem | ( | in long | 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 long | id | ) |
Returns true if given element is polygon.
boolean SMESH::SMESH_Mesh::IsQuadratic | ( | in long | 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_Mesh::Load | ( | ) | raises (SALOME::SALOME_Exception) |
Load full mesh data from the study file.
Load mesh from study file.
long SMESH::SMESH_Mesh::Nb0DElements | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbBalls | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbBiQuadQuadrangles | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbBiQuadTriangles | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbEdges | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbEdgesOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbElements | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbFaces | ( | ) | raises (SALOME::SALOME_Exception) |
long 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.
long SMESH::SMESH_Mesh::NbHexagonalPrisms | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbHexas | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbHexasOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbNodes | ( | ) | raises (SALOME::SALOME_Exception) |
Get informations about mesh contents.
long SMESH::SMESH_Mesh::NbPolygons | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPolygonsOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPolyhedrons | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPrisms | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPrismsOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPyramids | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbPyramidsOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbQuadrangles | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbQuadranglesOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbSubMesh | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbTetras | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbTetrasOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbTriangles | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbTrianglesOfOrder | ( | in ElementOrder | order | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbTriQuadraticHexas | ( | ) | raises (SALOME::SALOME_Exception) |
long SMESH::SMESH_Mesh::NbVolumes | ( | ) | raises (SALOME::SALOME_Exception) |
long 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 previouly added with AddHypothesis.
void SMESH::SMESH_Mesh::RemoveSubMesh | ( | in SMESH_subMesh | aSubMesh | ) | raises (SALOME::SALOME_Exception) |
Remove a submesh.
void SMESH::SMESH_Mesh::SetAutoColor | ( | in boolean | theAutoColor | ) | raises (SALOME::SALOME_Exception) |
Toggle auto color mode on the object.
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