X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FrotTrans.py;h=05e3dcbe10db1d2821891018d22779c132854a48;hb=b219607edd7bc54ce9d4118c2185d4d826e7d858;hp=7b8ff6e476cee960d0625dfb049c504966e156c1;hpb=072a73120b6db7bba2389aa7ada0cde20e22ee57;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/rotTrans.py b/src/Tools/blocFissure/gmu/rotTrans.py index 7b8ff6e47..05e3dcbe1 100644 --- a/src/Tools/blocFissure/gmu/rotTrans.py +++ b/src/Tools/blocFissure/gmu/rotTrans.py @@ -2,6 +2,9 @@ import logging from geomsmesh import geompy +from geomsmesh import geomPublish +from geomsmesh import geomPublishInFather +import initLog import math from triedreBase import triedreBase O, OX, OY, OZ = triedreBase() @@ -48,9 +51,9 @@ def rotTrans(objet, orientation, point, normal, trace = False): logging.debug("alpha",alpha) logging.debug("beta",beta) if trace: - geompy.addToStudy( rot1, 'rot1' ) - geompy.addToStudy( axe2, 'axe2' ) - geompy.addToStudy( rot2, 'rot2' ) + geomPublish(initLog.debug, rot1, 'rot1' ) + geomPublish(initLog.debug, axe2, 'axe2' ) + geomPublish(initLog.debug, rot2, 'rot2' ) xyz = geompy.PointCoordinates(point) trans = geompy.MakeTranslation(rot2, xyz[0], xyz[1], xyz[2])