mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-12 00:29:18 +05:00
complete t-shape pipe
This commit is contained in:
parent
e53c3df090
commit
54a9a7984f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user