From 42ae6ba11a0246aa8984740416c65f353359a9c2 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 15 Apr 2015 19:26:05 +0300 Subject: [PATCH] 22649: EDF SMESH: A second Origin/BaseVectors is created when we assign a set of hypotheses in SMESH --- src/Tools/blocFissure/gmu/triedreBase.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Tools/blocFissure/gmu/triedreBase.py b/src/Tools/blocFissure/gmu/triedreBase.py index 53135633e..ffc3a1b32 100644 --- a/src/Tools/blocFissure/gmu/triedreBase.py +++ b/src/Tools/blocFissure/gmu/triedreBase.py @@ -23,10 +23,11 @@ def triedreBase(): OX = geompy.MakeVectorDXDYDZ(1, 0, 0) OY = geompy.MakeVectorDXDYDZ(0, 1, 0) OZ = geompy.MakeVectorDXDYDZ(0, 0, 1) - - geompy.addToStudy( O, 'O' ) - geompy.addToStudy( OX, 'OX' ) - geompy.addToStudy( OY, 'OY' ) - geompy.addToStudy( OZ, 'OZ' ) + + if not geompy.myStudy.FindObjectByName( 'OX', geompy.ComponentDataType() ): + geompy.addToStudy( O, 'O' ) + geompy.addToStudy( OX, 'OX' ) + geompy.addToStudy( OY, 'OY' ) + geompy.addToStudy( OZ, 'OZ' ) return O, OX, OY, OZ -- 2.39.2