Functions | |
def | Mesh |
Create a mesh. More... | |
def | __init__ |
Constructor. More... | |
def | SetMesh |
Initialize the Mesh object from an instance of SMESH_Mesh interface. More... | |
def | GetMesh |
Return the mesh, that is an instance of SMESH_Mesh interface. More... | |
def | GetName |
Get the name of the mesh. More... | |
def | SetName |
Set a name to the mesh. More... | |
def | GetShape |
Return the shape associated to the mesh. More... | |
def | SetShape |
Associate the given shape to the mesh (entails the recreation of the mesh) More... | |
def | IsReadyToCompute |
Return true if the hypotheses are defined well. More... | |
def | GetAlgoState |
Return errors of hypotheses definition. More... | |
def | Evaluate |
Evaluate size of prospective mesh on a shape. More... | |
def | Compute |
Compute the mesh and return the status of the computation. More... | |
def | GetComputeErrors |
Return a list of error messages (SMESH.ComputeError) of the last Compute() More... | |
def | GetFailedShapes |
Return a list of sub-shapes meshing of which failed, grouped into GEOM groups by error of an algorithm. More... | |
def | GetMeshOrder |
Return sub-mesh objects list in meshing order. More... | |
def | SetMeshOrder |
Set order in which concurrent sub-meshes should be meshed. More... | |
def | Clear |
Remove all nodes and elements generated on geometry. More... | |
def Mesh | ( | self, | |
obj = 0 , |
|||
name = 0 |
|||
) |
Create a mesh.
This can be either an empty mesh, possibly having an underlying geometry, or a mesh wrapping a CORBA mesh given as a parameter.
obj | either (1) a CORBA mesh (SMESH._objref_SMESH_Mesh) got e.g. by calling salome.myStudy.FindObjectID("0:1:2:3").GetObject() or (2) a Geometrical object for meshing or (3) none. |
name | the name for the new mesh. |
References smeshBuilder.geompyD.
def __init__ | ( | self, | |
smeshpyD, | |||
geompyD, | |||
obj = 0 , |
|||
name = 0 |
|||
) |
Constructor.
Create 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 smeshBuilder class |
geompyD | an instance of geomBuilder class |
obj | Shape to be meshed or SMESH_Mesh object |
name | Study name of the mesh |
def SetMesh | ( | self, | |
theMesh | |||
) |
Initialize the Mesh object from an instance of SMESH_Mesh interface.
theMesh | a SMESH_Mesh object |
def GetMesh | ( | self | ) |
Return 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 | |||
) |
Associate 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 | |||
) |
Return true if the hypotheses are defined well.
theSubObject | a sub-shape of a mesh shape |
References Mesh.mesh.
def GetAlgoState | ( | self, | |
theSubObject | |||
) |
Return 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 Evaluate | ( | self, | |
geom = 0 |
|||
) |
Evaluate size of prospective mesh on a shape.
def Compute | ( | self, | |
geom = 0 , |
|||
discardModifs = False , |
|||
refresh = False |
|||
) |
Compute the mesh and return 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() |
refresh | if True , Object browser is automatically updated (when running in GUI) |
References Mesh.geom, Mesh.GetName(), Mesh.GetSubShapeName(), Mesh.mesh, and Mesh.NbNodes().
def GetComputeErrors | ( | self, | |
shape = 0 |
|||
) |
def GetFailedShapes | ( | self, | |
publish = False |
|||
) |
Return a list of sub-shapes meshing of which failed, grouped into GEOM groups by error of an algorithm.
publish | if True , the returned groups will be published in the study |
References Mesh.geom, Mesh.GetShape(), and Mesh.mesh.
def GetMeshOrder | ( | self | ) |
Return sub-mesh objects list in meshing order.
def SetMeshOrder | ( | self, | |
submeshes | |||
) |
Set order in which concurrent sub-meshes should be meshed.
submeshes | list of lists of sub-meshes |
def Clear | ( | self, | |
refresh = False |
|||
) |
Remove all nodes and elements generated on geometry.
Imported elements remain.
refresh | if True , Object browser is automatically updated (when running in GUI) |
References Mesh.mesh.