SMESH.SMESH_Mesh Interface Reference

import "SMESH_Mesh.idl";

Inheritance diagram for SMESH.SMESH_Mesh:

Inheritance graph

Public Member Functions

SMESH_subMesh GetSubMesh (in GEOM::GEOM_Object aSubObject, in string name) raises (SALOME::SALOME_Exception)
GEOM::GEOM_Object GetShapeToMesh () raises (SALOME::SALOME_Exception)
void RemoveSubMesh (in SMESH_subMesh aSubMesh) raises (SALOME::SALOME_Exception)
SMESH_Group CreateGroup (in ElementType elem_type, in string name) raises (SALOME::SALOME_Exception)
SMESH_GroupOnGeom CreateGroupFromGEOM (in ElementType elem_type, in string name, in GEOM::GEOM_Object theGeomObject) raises (SALOME::SALOME_Exception)
void RemoveGroup (in SMESH_GroupBase aGroup) raises (SALOME::SALOME_Exception)
void RemoveGroupWithContents (in SMESH_GroupBase aGroup) raises (SALOME::SALOME_Exception)
SMESH_Group UnionGroups (in SMESH_GroupBase aGroup1, in SMESH_GroupBase aGroup2, in string name) raises (SALOME::SALOME_Exception)
SMESH_Group IntersectGroups (in SMESH_GroupBase aGroup1, in SMESH_GroupBase aGroup2, in string name) raises (SALOME::SALOME_Exception)
SMESH_Group CutGroups (in SMESH_GroupBase aMainGroup, in SMESH_GroupBase aToolGroup, in string name) raises (SALOME::SALOME_Exception)
Hypothesis_Status AddHypothesis (in GEOM::GEOM_Object aSubObject, in SMESH_Hypothesis anHyp) raises (SALOME::SALOME_Exception)
Hypothesis_Status RemoveHypothesis (in GEOM::GEOM_Object aSubObject, in SMESH_Hypothesis anHyp) raises (SALOME::SALOME_Exception)
ListOfHypothesis GetHypothesisList (in GEOM::GEOM_Object aSubObject) raises (SALOME::SALOME_Exception)
log_array GetLog (in boolean clearAfterGet) raises (SALOME::SALOME_Exception)
void ClearLog () raises (SALOME::SALOME_Exception)
long GetId ()
long GetStudyId ()
SMESH_MeshEditor GetMeshEditor () raises (SALOME::SALOME_Exception)
void ExportToMED (in string file, in boolean auto_groups, in MED_VERSION theVersion) raises (SALOME::SALOME_Exception)
void ExportMED (in string file, in boolean auto_groups) raises (SALOME::SALOME_Exception)
void ExportDAT (in string file) raises (SALOME::SALOME_Exception)
void ExportUNV (in string file) raises (SALOME::SALOME_Exception)
void ExportSTL (in string file, in boolean isascii) raises (SALOME::SALOME_Exception)
SALOME_MED::MESH GetMEDMesh () raises (SALOME::SALOME_Exception)
long NbNodes () raises (SALOME::SALOME_Exception)
long NbElements () raises (SALOME::SALOME_Exception)
long NbEdges () raises (SALOME::SALOME_Exception)
long NbFaces () raises (SALOME::SALOME_Exception)
long NbTriangles () raises (SALOME::SALOME_Exception)
long NbQuadrangles () raises (SALOME::SALOME_Exception)
long NbVolumes () raises (SALOME::SALOME_Exception)
long NbTetras () raises (SALOME::SALOME_Exception)
long NbHexas () raises (SALOME::SALOME_Exception)
long NbPyramids () raises (SALOME::SALOME_Exception)
long NbPrisms () 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)
string Dump ()
long_array GetIDs ()

Member Function Documentation

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 subShape. The subMesh object gives access to nodes and elements IDs. SubMesh will be used instead of SubShape in a next idl version to adress a specific subMesh...

GEOM::GEOM_Object SMESH.SMESH_Mesh.GetShapeToMesh  )  raises (SALOME::SALOME_Exception)
 

Get geom shape to mesh. A result may be nil

void SMESH.SMESH_Mesh.RemoveSubMesh in SMESH_subMesh  aSubMesh  )  raises (SALOME::SALOME_Exception)
 

Remove a submesh

SMESH_Group SMESH.SMESH_Mesh.CreateGroup in ElementType  elem_type,
in string  name
raises (SALOME::SALOME_Exception)
 

Create a group

SMESH_GroupOnGeom SMESH.SMESH_Mesh.CreateGroupFromGEOM in ElementType  elem_type,
in string  name,
in GEOM::GEOM_Object  theGeomObject
raises (SALOME::SALOME_Exception)
 

Create a group from geometry group

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

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

Hypothesis_Status SMESH.SMESH_Mesh.AddHypothesis in GEOM::GEOM_Object  aSubObject,
in SMESH_Hypothesis  anHyp
raises (SALOME::SALOME_Exception)
 

Add hypothesis to the mesh, under a particular subShape (or the main shape itself) The Add method is only used to prepare the build of the mesh and store the algorithms and associated parameters. Actual job of mesh the shape is done by MESH_Gen.

  • aSubShape : subShape obtained by a shape explode in GEOM (or main shape)
  • anHyp : hypothesis object
    Returns:
  • OK if the hypothesis is compatible with the subShape (and all previous hypothesis on the subShape)
  • NOK if the hypothesis is not compatible with the subShape (or one previous hypothesis on the subShape) raises exception if hypothesis has not been created

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.

ListOfHypothesis SMESH.SMESH_Mesh.GetHypothesisList in GEOM::GEOM_Object  aSubObject  )  raises (SALOME::SALOME_Exception)
 

Get the list of hypothesis added on a subShape

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.

  • clearAfterGet : log is emptied after Get (safe if concurrents access)

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.

long SMESH.SMESH_Mesh.GetId  ) 
 

Get the internal Id

long SMESH.SMESH_Mesh.GetStudyId  ) 
 

Get the study Id

SMESH_MeshEditor SMESH.SMESH_Mesh.GetMeshEditor  )  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 different MED Formats

  • auto_groups : boolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... ; the typical use is auto_groups=false.
  • theVersion : define the version of format of MED file, that will be created

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 ExportToMED, with MED_VERSION parameter equal to MED_V2_1. The method is kept in order to support old functionality

void SMESH.SMESH_Mesh.ExportDAT in string  file  )  raises (SALOME::SALOME_Exception)
 

Export Mesh to DAT, UNV and STL Formats

void SMESH.SMESH_Mesh.ExportUNV in string  file  )  raises (SALOME::SALOME_Exception)
 

void SMESH.SMESH_Mesh.ExportSTL in string  file,
in boolean  isascii
raises (SALOME::SALOME_Exception)
 

SALOME_MED::MESH SMESH.SMESH_Mesh.GetMEDMesh  )  raises (SALOME::SALOME_Exception)
 

Get MED Mesh

long SMESH.SMESH_Mesh.NbNodes  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbElements  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbEdges  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbFaces  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbTriangles  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbQuadrangles  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbVolumes  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbTetras  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbHexas  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbPyramids  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbPrisms  )  raises (SALOME::SALOME_Exception)
 

long SMESH.SMESH_Mesh.NbSubMesh  )  raises (SALOME::SALOME_Exception)
 

long_array SMESH.SMESH_Mesh.GetElementsId  )  raises (SALOME::SALOME_Exception)
 

long_array SMESH.SMESH_Mesh.GetElementsByType in ElementType  theType  )  raises (SALOME::SALOME_Exception)
 

long_array SMESH.SMESH_Mesh.GetNodesId  )  raises (SALOME::SALOME_Exception)
 

string SMESH.SMESH_Mesh.Dump  ) 
 

long_array SMESH.SMESH_IDSource.GetIDs  )  [inherited]
 

Returns a sequence of all element IDs


Generated on Wed Feb 8 01:44:28 2006 for SALOME - SMESH - v.2.2.8 by doxygen 1.3.7