Functions | |
def | GetSubMesh |
Get a sub-mesh object associated to a geom geometrical object. More... | |
def | ClearSubMesh |
Remove all nodes and elements of indicated shape. More... | |
def | Compute |
Compute the sub-mesh and return the status of the computation. More... | |
def GetSubMesh | ( | self, | |
geom, | |||
name | |||
) |
Get a sub-mesh object associated to a geom geometrical object.
geom | a geometrical object (shape) |
name | a name for the sub-mesh in the Object Browser |
The sub-mesh object gives access to the IDs of nodes and elements. The sub-mesh object has the following methods:
algo1D = mesh.Segment(geom=Edge_1)
creates a sub-mesh on Edge_1
and assign Wire Discretization algorithm to it. The created sub-mesh can be retrieved from the algorithm: submesh = algo1D.GetSubMesh()
References smeshBuilder.AssureGeomPublished().
def ClearSubMesh | ( | self, | |
geomId, | |||
refresh = False |
|||
) |
Remove all nodes and elements of indicated shape.
refresh | if True , Object browser is automatically updated (when running in GUI) |
geomId | the ID of a sub-shape to remove elements on |
References Mesh.mesh.
def Compute | ( | self, | |
refresh = False |
|||
) |
Compute the sub-mesh and return the status of the computation.
refresh | if True , Object browser is automatically updated (when running in GUI) |
This is a method of SMESH.SMESH_submesh that can be obtained via Mesh.GetSubMesh() or Mesh_Algorithm.GetSubMesh().
References Mesh.GetMesh(), Mesh.mesh, and submeshProxy.mesh.