SALOME documentation central

Constructing meshes
[Creating meshes]

Functions

def Mesh
 Creates an empty Mesh.
def __init__
 Constructor.
def SetMesh
 Initializes the Mesh object from an instance of SMESH_Mesh interface.
def GetMesh
 Returns the mesh, that is an instance of SMESH_Mesh interface.
def GetName
 Gets the name of the mesh.
def SetName
 Sets a name to the mesh.
def GetShape
 Returns the shape associated to the mesh.
def SetShape
 Associates the given shape to the mesh (entails the recreation of the mesh).
def IsReadyToCompute
 Returns true if the hypotheses are defined well.
def GetAlgoState
 Returns errors of hypotheses definition.
def GetGeometryByMeshElement
 Returns a geometrical object on which the given element was built.
def Compute
 Computes the mesh and returns the status of the computation.
def Clear
 Removes all nodes and elements.
def ClearSubMesh
 Removes all nodes and elements of indicated shape.

Function Documentation

def Mesh (   self,
  obj = 0,
  name = 0 
) [inherited]

Creates an empty Mesh.

This mesh can have an underlying geometry.

Parameters:
obj the Geometrical object on which the mesh is built. If not defined, the mesh will have no underlying geometry.
name the name for the new mesh.
Returns:
an instance of Mesh class.
def __init__ (   self,
  smeshpyD,
  geompyD,
  obj = 0,
  name = 0 
) [inherited]

Constructor.

Creates a mesh on the shape obj (or an empty mesh if obj is equal to 0) and sets the GUI name of this mesh to name.

Parameters:
smeshpyD an instance of smesh class
geompyD an instance of geompyDC class
obj Shape to be meshed or SMESH_Mesh object
name Study name of the mesh
def SetMesh (   self,
  theMesh 
) [inherited]

Initializes the Mesh object from an instance of SMESH_Mesh interface.

Parameters:
theMesh a SMESH_Mesh object
def GetMesh (   self  )  [inherited]

Returns the mesh, that is an instance of SMESH_Mesh interface.

Returns:
a SMESH_Mesh object
def GetName (   self  )  [inherited]

Gets the name of the mesh.

Returns:
the name of the mesh as a string
def SetName (   self,
  name 
) [inherited]

Sets a name to the mesh.

Parameters:
name a new name of the mesh
def GetShape (   self  )  [inherited]

Returns the shape associated to the mesh.

Returns:
a GEOM_Object
def SetShape (   self,
  geom 
) [inherited]

Associates the given shape to the mesh (entails the recreation of the mesh).

Parameters:
geom the shape to be meshed (GEOM_Object)
def IsReadyToCompute (   self,
  theSubObject 
) [inherited]

Returns true if the hypotheses are defined well.

Parameters:
theSubObject a subshape of a mesh shape
Returns:
True or False
def GetAlgoState (   self,
  theSubObject 
) [inherited]

Returns errors of hypotheses definition.

The list of errors is empty if everything is OK.

Parameters:
theSubObject a subshape of a mesh shape
Returns:
a list of errors
def GetGeometryByMeshElement (   self,
  theElementID,
  theGeomName 
) [inherited]

Returns a geometrical object on which the given element was built.

The returned geometrical object, if not nil, is either found in the study or published by this method with the given name

Parameters:
theElementID the id of the mesh element
theGeomName the user-defined name of the geometrical object
Returns:
GEOM.GEOM_Object instance
def Compute (   self,
  geom = 0 
) [inherited]

Computes the mesh and returns the status of the computation.

Returns:
True or False
def Clear (   self  )  [inherited]

Removes all nodes and elements.

def ClearSubMesh (   self,
  geomId 
) [inherited]

Removes all nodes and elements of indicated shape.

 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS