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. |
def Mesh | ( | self, | ||
obj = 0 , |
||||
name = 0 | ||||
) | [inherited] |
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.
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.
theMesh | a SMESH_Mesh object |
def GetMesh | ( | self | ) | [inherited] |
Returns the mesh, that is an instance of SMESH_Mesh interface.
def GetName | ( | self | ) | [inherited] |
Gets the name of the mesh.
def SetName | ( | self, | ||
name | ||||
) | [inherited] |
Sets a name to the mesh.
name | a new name of the mesh |
def GetShape | ( | self | ) | [inherited] |
Returns the shape associated to the mesh.
def SetShape | ( | self, | ||
geom | ||||
) | [inherited] |
Associates the given shape to the mesh (entails the recreation of the mesh).
geom | the shape to be meshed (GEOM_Object) |
def IsReadyToCompute | ( | self, | ||
theSubObject | ||||
) | [inherited] |
Returns true if the hypotheses are defined well.
theSubObject | a subshape of a mesh shape |
def GetAlgoState | ( | self, | ||
theSubObject | ||||
) | [inherited] |
Returns errors of hypotheses definition.
The list of errors is empty if everything is OK.
theSubObject | a subshape of a mesh shape |
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
theElementID | the id of the mesh element | |
theGeomName | the user-defined name of the geometrical object |
def Compute | ( | self, | ||
geom = 0 | ||||
) | [inherited] |
Computes the mesh and returns the status of the computation.
def Clear | ( | self | ) | [inherited] |
Removes all nodes and elements.
def ClearSubMesh | ( | self, | ||
geomId | ||||
) | [inherited] |
Removes all nodes and elements of indicated shape.