From d1d19caf57524c6da08849c77ad242adb66e6d0e Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 28 Aug 2014 16:39:53 +0200 Subject: [PATCH] debug parametrage cas tests cubeFin --- src/Tools/blocFissure/CasTests/cubeCoin.py | 2 +- src/Tools/blocFissure/gmu/fissureGenerique.py | 4 +++- src/Tools/blocFissure/materielCasTests/cubeFin.py | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Tools/blocFissure/CasTests/cubeCoin.py b/src/Tools/blocFissure/CasTests/cubeCoin.py index 0e39a3224..97d18a45d 100644 --- a/src/Tools/blocFissure/CasTests/cubeCoin.py +++ b/src/Tools/blocFissure/CasTests/cubeCoin.py @@ -6,7 +6,7 @@ from blocFissure import gmu dicoParams = dict(nomCas = 'cubeCoin', maillageSain = os.path.join(gmu.pathBloc, 'materielCasTests/cubeFin.med'), brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_Coin.brep"), - edgeFissIds = [4], + edgeFissIds = [7], lgInfluence = 50, meshBrep = (5,10), rayonPipe = 10, diff --git a/src/Tools/blocFissure/gmu/fissureGenerique.py b/src/Tools/blocFissure/gmu/fissureGenerique.py index 17518e871..3296c39ce 100644 --- a/src/Tools/blocFissure/gmu/fissureGenerique.py +++ b/src/Tools/blocFissure/gmu/fissureGenerique.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +import logging + from blocFissure import gmu from blocFissure.gmu.initEtude import initEtude from blocFissure.gmu.getStatsMaillageFissure import getStatsMaillageFissure @@ -60,7 +62,7 @@ class fissureGenerique(): # --------------------------------------------------------------------------- def executeProbleme(self, step=-1): - print "executeProbleme", self.nomCas + logging.info(" --- executeProbleme %s", self.nomCas) if step == 0: return diff --git a/src/Tools/blocFissure/materielCasTests/cubeFin.py b/src/Tools/blocFissure/materielCasTests/cubeFin.py index 219fa4e81..6f9129bfe 100644 --- a/src/Tools/blocFissure/materielCasTests/cubeFin.py +++ b/src/Tools/blocFissure/materielCasTests/cubeFin.py @@ -53,7 +53,7 @@ Line_3_vertex_2 = geompy.GetSubShape(Line_3, [2]) Arc_1 = geompy.MakeArc(Line_1_vertex_3, Vertex_5, Line_3_vertex_2) Face_1 = geompy.MakeFaceWires([Line_1, Line_3, Line_4, Arc_1], 1) cubeFin_Coin = geompy.MakeCommonList([Rotation_1, Face_1], True) -cubeFin_milieu = geompy.MakeCommonList([Scale_1, cubeFin_Transverse], True) +cubeFin_Milieu = geompy.MakeCommonList([Scale_1, cubeFin_Transverse], True) O_1 = geompy.MakeVertex(0, 0, 0) OX_1 = geompy.MakeVectorDXDYDZ(1, 0, 0) OY_1 = geompy.MakeVectorDXDYDZ(0, 1, 0) @@ -88,14 +88,14 @@ geompy.addToStudyInFather( Line_3, Line_3_vertex_2, 'Line_3:vertex_2' ) geompy.addToStudy( Arc_1, 'Arc_1' ) geompy.addToStudy( Face_1, 'Face_1' ) geompy.addToStudy( cubeFin_Coin, 'cubeFin_Coin' ) -geompy.addToStudy( cubeFin_milieu, 'cubeFin_milieu' ) +geompy.addToStudy( cubeFin_Milieu, 'cubeFin_Milieu' ) geompy.addToStudy( O_1, 'O' ) geompy.addToStudy( OX_1, 'OX' ) geompy.addToStudy( OY_1, 'OY' ) geompy.addToStudy( OZ_1, 'OZ' ) geompy.Export(cubeFin_Transverse, os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_Transverse.brep"), "BREP") geompy.Export(cubeFin_Coin, os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_Coin.brep"), "BREP") -geompy.Export(cubeFin_milieu, os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_milieu.brep"), "BREP") +geompy.Export(cubeFin_Milieu, os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_Milieu.brep"), "BREP") ### ### SMESH component -- 2.39.2