Fix BuildCompound case.

This commit is contained in:
rnv 2008-12-12 09:31:10 +00:00
parent 02881de750
commit 794537fc6d

View File

@ -560,33 +560,26 @@ class smeshDC(SMESH._objref_SMESH_Gen):
def GetPattern(self): def GetPattern(self):
return SMESH._objref_SMESH_Gen.GetPattern(self) return SMESH._objref_SMESH_Gen.GetPattern(self)
## Create a compound of Mesh objects ## Concatenate the given meshes into one mesh.
# @param theMeshArray array of Mesh objects # @return an instance of Mesh class
# @param theUniteIdenticalGroups flag used to unite identical mesh groups # @param meshes the meshes to combine into one mesh
# @param theMergeNodesAndElements flag used to merge mesh nodes and elements # @param uniteIdenticalGroups if true, groups with same names are united, else they are renamed
# @param theMergeTolerance tolerance of merging # @param mergeNodesAndElements if true, equal nodes and elements aremerged
# @return a compound of Mesh objects # @param mergeTolerance tolerance for merging nodes
# @ingroup l1_auxiliary # @param allGroups forces creation of groups of all elements
def Concatenate( self, theMeshArray, theUniteIdenticalGroups, theMergeNodesAndElements, theMergeTolerance ): def Concatenate( self, meshes, uniteIdenticalGroups,
theMergeTolerance,Parameters = geompyDC.ParseParameters(theMergeTolerance) mergeNodesAndElements = False, mergeTolerance = 1e-5, allGroups = False):
aMesh = SMESH._objref_SMESH_Gen.Concatenate( self, theMeshArray, theUniteIdenticalGroups, theMergeNodesAndElements, theMergeTolerance ) mergeTolerance,Parameters = geompyDC.ParseParameters(mergeTolerance)
aMesh.SetParameters(Parameters) if allGroups:
aSmeshMesh = SMESH._objref_SMESH_Gen.ConcatenateWithGroups(
self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance)
else:
aSmeshMesh = SMESH._objref_SMESH_Gen.Concatenate(
self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance)
aSmeshMesh.SetParameters(Parameters)
aMesh = Mesh(self, self.geompyD, aSmeshMesh)
return aMesh return aMesh
## Create a compound of Mesh objects
# @param theMeshArray array of Mesh objects
# @param theUniteIdenticalGroups flag used to unite identical mesh groups
# @param theMergeNodesAndElements flag used to merge mesh nodes and elements
# @param theMergeTolerance tolerance of merging
# @return a compound of Mesh objects
# @ingroup l1_auxiliary
def ConcatenateWithGroups( self, theMeshArray, theUniteIdenticalGroups, theMergeNodesAndElements, theMergeTolerance ):
theMergeTolerance,Parameters = geompyDC.ParseParameters(theMergeTolerance)
aMesh = SMESH._objref_SMESH_Gen.ConcatenateWithGroups( self, theMeshArray, theUniteIdenticalGroups, theMergeNodesAndElements, theMergeTolerance )
aMesh.SetParameters(Parameters)
return aMesh
# Filtering. Auxiliary functions: # Filtering. Auxiliary functions:
# ------------------------------ # ------------------------------