From ec51778b0c03cb813edd827367aa69e3132951f0 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 19 May 2009 15:32:08 +0000 Subject: [PATCH] 0020279: [CEA 334] control the "random" use when using mesh algorithms fix SourceShape3D() for the case when no vertices are provided --- src/SMESH_SWIG/smeshDC.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index af928f77d..62d2f82cd 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -4543,7 +4543,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 -- 2.39.2