Refactored all operations to be functions

This commit is contained in:
Roger Maitland 2023-03-22 16:34:00 -04:00
parent 85b3aa5b09
commit 186ca1f821
35 changed files with 308 additions and 789 deletions

View file

@ -58,7 +58,7 @@ with BuildPart() as lego:
"tutorial_step4.svg", (0, 0, 10), (0, 1, 0), svg_opts=svg_opts
)
# Subtract an offset to create the block walls
Offset(
offset(
perimeter,
amount=-wall_thickness,
kind=Kind.INTERSECTION,
@ -94,7 +94,7 @@ with BuildPart() as lego:
"tutorial_step8.svg", (0, 0, 10), (0, 1, 0), svg_opts=svg_opts
)
# Extrude this base sketch to the height of the walls
Extrude(amount=base_height - wall_thickness)
extrude(amount=base_height - wall_thickness)
lego.part.export_svg(
"tutorial_step9.svg", (-5, -30, 50), (0, 0, 1), svg_opts=svg_opts
)