From: eap Date: Wed, 22 Oct 2008 14:07:38 +0000 (+0000) Subject: 0020015: EDF 835 SMESH : Doc missing for concatenate. X-Git-Tag: RELIQUAT_4x_25102008~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6781ccc37a9dad09eb4dab38f14391caca8625f3;p=modules%2Fsmesh.git 0020015: EDF 835 SMESH : Doc missing for concatenate. Add Concatenate() command --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index d5e8661d6..88aa2a6f6 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -363,6 +363,24 @@ class smeshDC(SMESH._objref_SMESH_Gen): aMesh = Mesh(self, self.geompyD, aSmeshMesh) return aMesh + ## Concatenate the given meshes into one mesh. + # @return an instance of Mesh class + # @param meshes the meshes to combine into one mesh + # @param uniteIdenticalGroups if true, groups with same names are united, else they are renamed + # @param mergeNodesAndElements if true, equal nodes and elements aremerged + # @param mergeTolerance tolerance for merging nodes + # @param allGroups forces creation of groups of all elements + def Concatenate( self, meshes, uniteIdenticalGroups, + mergeNodesAndElements = False, mergeTolerance = 1e-5, allGroups = False): + 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) + aMesh = Mesh(self, self.geompyD, aSmeshMesh) + return aMesh + ## From SMESH_Gen interface # @return the list of integer values # @ingroup l1_auxiliary