From 54a9a7984f8294f907d2b23e7d8e349a13f9319c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Renaud=20N=C3=A9d=C3=A9lec?= Date: Mon, 23 Jun 2014 14:22:53 +0200 Subject: [PATCH] complete t-shape pipe --- src/Tools/t_shape_builder.py | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Tools/t_shape_builder.py b/src/Tools/t_shape_builder.py index d905f0545..2f6bc6ba2 100644 --- a/src/Tools/t_shape_builder.py +++ b/src/Tools/t_shape_builder.py @@ -9,21 +9,6 @@ import math import SALOMEDS -#O = geompy.MakeVertex(0, 0, 0) -#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' ) - -#r1 = 100.0 -#r2 = 50.0 -#h1 = 200.0 -#h2 = 200.0 - def demidisk(study, r1, a1, roty=0): geompy = geomBuilder.New(study) @@ -279,4 +264,17 @@ def build_shape(study, r1, r2, h1, h2): geompy.addToStudy(box, "box") final = geompy.MakeCommonList([box, assemblage], True) + # --- Partie infiérieure + v3, l3, arc3, part3 = demidisk(study, r1, a1, 180.0) + geompy.addToStudy(part3,"part3") + extru3 = geompy.MakePrismVecH(part3, OX, h1) + geompy.addToStudy(extru3,"extru3") + + # --- Symétrie + + compound = geompy.MakeCompound([final, extru3]) + plane = geompy.MakePlane(O,OX,2000) + compound_mirrored = geompy.MakeMirrorByPlane(compound, plane) + final = geompy.MakeCompound([compound, compound_mirrored]) + return final -- 2.39.2