Skip to content

Commit

Permalink
align extruded solids according to the PartBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaselhans committed Apr 20, 2023
1 parent ef35afa commit c1b47d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/build123d/operations_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ def extrude(
)
)


# Align the extrusions to the current workplanes
if to_extrude is not None:
if workplanelist := WorkplaneList._get_context():
if workplanes := workplanelist.workplanes:
new_solids = sum([
[wp * solid for wp in workplanes]
for solid in new_solids
], start=[])

if context is not None:
context._add_to_context(*new_solids, clean=clean, mode=mode)
elif clean:
Expand Down

0 comments on commit c1b47d3

Please sign in to comment.