debug blocFissure: geom behaviour change

This commit is contained in:
Paul RASCLE 2016-12-05 13:27:27 +01:00
parent ac0486e51f
commit fd1b23f804
10 changed files with 48 additions and 47 deletions

View File

@ -57,7 +57,7 @@ class cubeAngle(fissureGenerique):
shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/CubeAngleFiss.brep"), "BREP")
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [4])
geompy.UnionIDs(fondFiss, [3])
geompy.addToStudy( shellFiss, 'shellFiss' )
geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )

View File

@ -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 = [7],
edgeFissIds = [6],
lgInfluence = 50,
meshBrep = (5,10),
rayonPipe = 10,

View File

@ -6,7 +6,7 @@ from blocFissure import gmu
dicoParams = dict(nomCas = 'cubeMilieu',
maillageSain = os.path.join(gmu.pathBloc, 'materielCasTests/cubeFin.med'),
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests/cubeFin_Milieu.brep"),
edgeFissIds = [7],
edgeFissIds = [6],
lgInfluence = 50,
meshBrep = (5,10),
rayonPipe = 10,

View File

@ -61,7 +61,7 @@ class cylindre(fissureGenerique):
shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/FissInCylindre2.brep"), "BREP")
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [7])
geompy.UnionIDs(fondFiss, [6])
geompy.addToStudy( shellFiss, 'shellFiss' )
geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )

View File

@ -6,7 +6,7 @@ from blocFissure import gmu
dicoParams = dict(nomCas = 'disque',
maillageSain = os.path.join(gmu.pathBloc, 'materielCasTests/disque.med'),
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests/ellipse_disque.brep"),
edgeFissIds = [4],
edgeFissIds = [3],
lgInfluence = 10,
meshBrep = (0.5,2.5),
rayonPipe = 1.0,

View File

@ -65,7 +65,7 @@ class ellipse_1(fissureGenerique):
shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/ellipse1.brep"), "BREP")
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [4])
geompy.UnionIDs(fondFiss, [3])
geompy.addToStudy( shellFiss, 'shellFiss' )
geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )

View File

@ -37,7 +37,7 @@ class ellipse_2(ellipse_1):
shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/ellipse1_pb.brep"), "BREP")
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [4])
geompy.UnionIDs(fondFiss, [3])
geompy.addToStudy( shellFiss, 'shellFiss' )
geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )

View File

@ -140,10 +140,11 @@ class fissure_Coude(fissureGenerique):
# --- peau tube exterieur (PEAUEXT)
cercle1 = geompy.MakeCircle(centre, OZ, de/2.)
extru1 = geompy.MakePrismVecH(cercle1, OZ, l_tube_p1)
revol1 = geompy.MakeRevolution(cercle1, axe, angleCoude*math.pi/180.0)
rot1 = geompy.MakeRotation(cercle1, axe, angleCoude*math.pi/180.0)
Disk_3 = geompy.MakeDiskPntVecR(centre, OZ, de/2. +epais)
couronne1 = geompy.MakeCut(Disk_3, Disk_1)
extru1 = geompy.MakePrismVecH(couronne1, OZ, l_tube_p1)
revol1 = geompy.MakeRevolution(couronne1, axe, angleCoude*math.pi/180.0)
rot1 = geompy.MakeRotation(couronne1, axe, angleCoude*math.pi/180.0)
extru2 = geompy.MakePrismVecH(rot1, Rotation_2, -l_tube_p2)
externe = geompy.MakeFuse(extru1, revol1)
externe = geompy.MakeFuse(extru2, externe)

View File

@ -59,7 +59,7 @@ class vis_1(fissureGenerique):
shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/visFiss.brep"), "BREP")
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [7, 9])
geompy.UnionIDs(fondFiss, [6, 8])
geompy.addToStudy( shellFiss, 'shellFiss' )
geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )

View File

@ -178,10 +178,10 @@ class fissureCoude(fissureGenerique):
# --- peau tube exterieur (PEAUEXT)
cercle1 = geompy.MakeCircle(centre, OZ, de/2.)
extru1 = geompy.MakePrismVecH(cercle1, OZ, l_tube_p1)
revol1 = geompy.MakeRevolution(cercle1, axe, angleCoude*math.pi/180.0)
rot1 = geompy.MakeRotation(cercle1, axe, angleCoude*math.pi/180.0)
Disk_3 = geompy.MakeDiskPntVecR(centre, OZ, de/2. +epais)
extru1 = geompy.MakePrismVecH(Disk_3, OZ, l_tube_p1)
revol1 = geompy.MakeRevolution(Disk_3, axe, angleCoude*math.pi/180.0)
rot1 = geompy.MakeRotation(Disk_3, axe, angleCoude*math.pi/180.0)
extru2 = geompy.MakePrismVecH(rot1, Rotation_2, -l_tube_p2)
externe = geompy.MakeFuse(extru1, revol1)
externe = geompy.MakeFuse(extru2, externe)