From e483b04a7091d8e747260c67e9fa60cb18ce4e47 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 18 Jan 2021 22:28:19 -0800 Subject: [PATCH] Run `black` linter --- examples/Ex025_Swept_Helix.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/Ex025_Swept_Helix.py b/examples/Ex025_Swept_Helix.py index 0ef94da72..a191b9fb7 100644 --- a/examples/Ex025_Swept_Helix.py +++ b/examples/Ex025_Swept_Helix.py @@ -1,8 +1,8 @@ import cadquery as cq -r = 0.5 # Radius of the helix -p = 0.4 # Pitch of the helix - vertical distance between loops -h = 2.4 # Height of the helix - total height +r = 0.5 # Radius of the helix +p = 0.4 # Pitch of the helix - vertical distance between loops +h = 2.4 # Height of the helix - total height # Helix wire = cq.Wire.makeHelix(pitch=p, height=h, radius=r) @@ -10,11 +10,11 @@ # Final result: A 2D shape swept along a helix. result = ( - cq.Workplane('XZ') # helix is moving up the Z axis - .center(r, 0) # offset isosceles trapezoid - .polyline(((-.15,0.1), (0.0,0.05), (0,0.35), (-0.15,0.3))) - .close() # make edges a wire - .sweep(helix, isFrenet=True) # Frenet keeps orientation as expected + cq.Workplane("XZ") # helix is moving up the Z axis + .center(r, 0) # offset isosceles trapezoid + .polyline(((-0.15, 0.1), (0.0, 0.05), (0, 0.35), (-0.15, 0.3))) + .close() # make edges a wire + .sweep(helix, isFrenet=True) # Frenet keeps orientation as expected ) show_object(result)