From: eap Date: Wed, 20 May 2009 15:40:31 +0000 (+0000) Subject: 0020279: [CEA 334] control the "random" use when using mesh algorithms X-Git-Tag: V4_1_0_maintainance_FINAL~81 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=d3bf944b1cb6d2f352443f89072d09ce8b6b143d;ds=sidebyside 0020279: [CEA 334] control the "random" use when using mesh algorithms fix SourceShape3D() for the case when no vertices are provided --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 00eae714c..9afa95394 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -3908,7 +3908,9 @@ class Mesh_Projection3D(Mesh_Algorithm): if not mesh is None and isinstance(mesh, Mesh): mesh = mesh.GetMesh() hyp.SetSourceMesh( mesh ) - hyp.SetVertexAssociation( srcV1, srcV2, tgtV1, tgtV2 ) + if srcV1 and srcV2 and tgtV1 and tgtV2: + hyp.SetVertexAssociation( srcV1, srcV2, tgtV1, tgtV2 ) + #elif srcV1 or srcV2 or tgtV1 or tgtV2: return hyp ## Checks if the given "SourceShape3D" hypothesis has the same parameters as given arguments