mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
0022108: EDF 2547 SMESH: Duplicate elements only
+ def DoubleElements(self, theElements, theGroupName=""):
This commit is contained in:
parent
251eb76e54
commit
dc9f23c3cd
@ -4133,11 +4133,29 @@ class Mesh:
|
||||
def GetLastCreatedElems(self):
|
||||
return self.editor.GetLastCreatedElems()
|
||||
|
||||
## Clear sequences of nodes and elements created by mesh edition oparations
|
||||
## Clears sequences of nodes and elements created by mesh edition oparations
|
||||
# @ingroup l1_auxiliary
|
||||
def ClearLastCreated(self):
|
||||
self.editor.ClearLastCreated()
|
||||
|
||||
## Creates Duplicates given elements, i.e. creates new elements based on the
|
||||
# same nodes as the given ones.
|
||||
# @param theElements - container of elements to duplicate. It can be a Mesh,
|
||||
# sub-mesh, group, filter or a list of element IDs.
|
||||
# @param theGroupName - a name of group to contain the generated elements.
|
||||
# If a group with such a name already exists, the new elements
|
||||
# are added to the existng group, else a new group is created.
|
||||
# If \a theGroupName is empty, new elements are not added
|
||||
# in any group.
|
||||
# @return a group where the new elements are added. None if theGroupName == "".
|
||||
# @ingroup l2_modif_edit
|
||||
def DoubleElements(self, theElements, theGroupName=""):
|
||||
if isinstance( theElements, Mesh ):
|
||||
theElements = theElements.mesh
|
||||
elif isinstance( theElements, list ):
|
||||
theElements = self.GetIDSource( theElements, SMESH.ALL )
|
||||
return self.editor.DoubleElements(theElements, theGroupName)
|
||||
|
||||
## Creates a hole in a mesh by doubling the nodes of some particular elements
|
||||
# @param theNodes identifiers of nodes to be doubled
|
||||
# @param theModifiedElems identifiers of elements to be updated by the new (doubled)
|
||||
|
Loading…
Reference in New Issue
Block a user