mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Refactored all operations to be functions
This commit is contained in:
parent
85b3aa5b09
commit
186ca1f821
35 changed files with 308 additions and 789 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue