From b5bd7f1852f0ca0122b4fed4be66c262a3356363 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Tue, 12 Jan 2016 15:00:56 +0100 Subject: [PATCH] =?utf8?q?debug=20de=20GetInPlace=20pour=20Cas=207=20eprou?= =?utf8?q?vette=20courbe=20non=20r=C3=A9solu?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/Tools/blocFissure/gmu/compoundFromList.py | 9 +++++---- src/Tools/blocFissure/gmu/identifieEdgesPeau.py | 1 + src/Tools/blocFissure/gmu/mailleFacesPeau.py | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Tools/blocFissure/gmu/compoundFromList.py b/src/Tools/blocFissure/gmu/compoundFromList.py index 8f1ed1962..85b321281 100644 --- a/src/Tools/blocFissure/gmu/compoundFromList.py +++ b/src/Tools/blocFissure/gmu/compoundFromList.py @@ -22,13 +22,14 @@ def compoundFromList(elements, nom=None): if nom is not None: for i,a in enumerate(shapeList): - nom = nom +"%d"%i - logging.debug('nom: %s',nom) - geomPublish(initLog.debug, a, nom) + nomi = nom +"%d"%i + logging.debug('nom: %s',nomi) + geomPublish(initLog.debug, a, nomi) shapeCompound = None if len(shapeList) > 0: shapeCompound =geompy.MakeCompound(shapeList) - + nomc = "compound_%s"%nom + geomPublish(initLog.debug, shapeCompound, nomc) return shapeCompound diff --git a/src/Tools/blocFissure/gmu/identifieEdgesPeau.py b/src/Tools/blocFissure/gmu/identifieEdgesPeau.py index 19335d7fa..a3abb6208 100644 --- a/src/Tools/blocFissure/gmu/identifieEdgesPeau.py +++ b/src/Tools/blocFissure/gmu/identifieEdgesPeau.py @@ -96,6 +96,7 @@ def identifieEdgesPeau(edgesFissExtPipe,verticesPipePeau, facePeau, facesPeauSor geompy.UnionList(groupEdgesBordPeau, edgesBords) bordsVifs = None if aretesVivesC is not None: + logging.debug("identification des bords vifs par GetInPlace (old)") bordsVifs = geompy.GetInPlace(facePeau, aretesVivesC) if bordsVifs is not None: geomPublishInFather(initLog.debug, facePeau, bordsVifs, "bordsVifs") diff --git a/src/Tools/blocFissure/gmu/mailleFacesPeau.py b/src/Tools/blocFissure/gmu/mailleFacesPeau.py index c73cf1d59..41a72e9ab 100644 --- a/src/Tools/blocFissure/gmu/mailleFacesPeau.py +++ b/src/Tools/blocFissure/gmu/mailleFacesPeau.py @@ -31,7 +31,8 @@ def mailleFacesPeau(partitionsPeauFissFond, idFillingFromBout, facesDefaut, for ifil in range(nbFacesFilling): meshFacePeau = None if partitionsPeauFissFond[ifil] is None: # face de peau maillage sain intacte - + + logging.debug("meshFacePeau %d intacte", ifil) # --- edges de bord de la face de filling filling = facesDefaut[ifil] edgesFilling = geompy.ExtractShapes(filling, geompy.ShapeType["EDGE"], False) @@ -49,6 +50,7 @@ def mailleFacesPeau(partitionsPeauFissFond, idFillingFromBout, facesDefaut, else: + logging.debug("meshFacePeau %d coupée par la fissure", ifil) facePeau = facesPeaux[ifil] # pour chaque face : la face de peau finale a mailler (percée des faces débouchantes) edgesCircPeau = edCircPeau[ifil] # pour chaque face de peau : [subshape edge circulaire aux débouchés du pipe] verticesCircPeau = ptCircPeau[ifil] # pour chaque face de peau : [subshape point sur edge circulaire aux débouchés du pipe] -- 2.30.2