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 | GetMeshOrder |
Return submesh objects list in meshing order. | |
def | SetMeshOrder |
Return submesh objects list in meshing order. | |
def | Clear |
Removes all nodes and elements. | |
def | ClearSubMesh |
Removes all nodes and elements of indicated shape. |
def smesh.Mesh | ( | self, | |
obj = 0 , |
|||
name = 0 |
|||
) |
def __init__ | ( | self, | |
smeshpyD, | |||
geompyD, | |||
obj = 0 , |
|||
name = 0 |
|||
) |
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 smeshDC 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 | |||
) |
def GetMesh | ( | self | ) |
Returns the mesh, that is an instance of SMESH_Mesh interface.
References Mesh.mesh.
def GetName | ( | self | ) |
def SetName | ( | self, | |
name | |||
) |
def GetShape | ( | self | ) |
def SetShape | ( | self, | |
geom | |||
) |
Associates the given shape to the mesh (entails the recreation of the mesh)
geom | the shape to be meshed (GEOM_Object) |
References Mesh.mesh.
def IsReadyToCompute | ( | self, | |
theSubObject | |||
) |
Returns true if the hypotheses are defined well.
theSubObject | a sub-shape of a mesh shape |
References Mesh.mesh.
def GetAlgoState | ( | self, | |
theSubObject | |||
) |
Returns errors of hypotheses definition.
The list of errors is empty if everything is OK.
theSubObject | a sub-shape of a mesh shape |
References Mesh.mesh.
def GetGeometryByMeshElement | ( | self, | |
theElementID, | |||
theGeomName | |||
) |
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 |
References Mesh.mesh.
def Compute | ( | self, | |
geom = 0 , |
|||
discardModifs = False |
|||
) |
Computes the mesh and returns the status of the computation.
geom | geomtrical shape on which mesh data should be computed |
discardModifs | if True and the mesh has been edited since a last total re-compute and that may prevent successful partial re-compute, then the mesh is cleaned before Compute() |
References Mesh.geom, Mesh.GetName(), Mesh.mesh, and Mesh.NbNodes().
def GetMeshOrder | ( | self | ) |
Return submesh objects list in meshing order.
def SetMeshOrder | ( | self, | |
submeshes | |||
) |
Return submesh objects list in meshing order.
def Clear | ( | self | ) |
Removes all nodes and elements.
References Mesh.mesh.
def ClearSubMesh | ( | self, | |
geomId | |||
) |
Removes all nodes and elements of indicated shape.
References Mesh.mesh.