Zuletzt aktiv 1 month ago

Freecad Parabolica

racerxdl's Avatar Lucas Teske hat die Gist bearbeitet 8 years ago. Zu Änderung gehen

1 file changed, 4 deletions

parabolica.py

@@ -7,13 +7,9 @@ thickness = 3
7 7
8 8 m=App.Matrix()
9 9 m.rotateY(math.radians(-90))
10 - # create a parabola
11 10 parabola=Part.Parabola()
12 - # the axis of the plane the curve is lying on, this sets the symmetry axis to (0,0,1)
13 - #parabola.Axis=App.Vector(1,0,0)
14 11 parabola.Focal = focalPoint
15 12 parabola.transform(m)
16 - # get only the right part of the curve
17 13 edge=parabola.toShape(0,radius)
18 14 Part.show(edge)
19 15 face=edge.revolve(App.Vector(0,0,0),App.Vector(0,0,1),360)

racerxdl's Avatar Lucas Teske hat die Gist bearbeitet 8 years ago. Zu Änderung gehen

1 file changed, 22 insertions

parabolica.py(Datei erstellt)

@@ -0,0 +1,22 @@
1 + import Part, math
2 +
3 + focalPoint = 792.0
4 + diameter = 2200.0
5 + radius = diameter / 2
6 + thickness = 3
7 +
8 + m=App.Matrix()
9 + m.rotateY(math.radians(-90))
10 + # create a parabola
11 + parabola=Part.Parabola()
12 + # the axis of the plane the curve is lying on, this sets the symmetry axis to (0,0,1)
13 + #parabola.Axis=App.Vector(1,0,0)
14 + parabola.Focal = focalPoint
15 + parabola.transform(m)
16 + # get only the right part of the curve
17 + edge=parabola.toShape(0,radius)
18 + Part.show(edge)
19 + face=edge.revolve(App.Vector(0,0,0),App.Vector(0,0,1),360)
20 + offset=face.makeOffsetShape(-thickness,0.001)
21 +
22 + Part.show(offset)
Neuer Älter