mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-03 07:42:50 -08:00
Introduced with notation for workplanes and points
This commit is contained in:
parent
81a6a2bde3
commit
69abdd9c45
19 changed files with 660 additions and 481 deletions
19
examples/intersecting_chamfers.py
Normal file
19
examples/intersecting_chamfers.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from build123d import *
|
||||
|
||||
|
||||
with BuildPart() as blocks:
|
||||
with Locations((-1, -1, 0)):
|
||||
Box(1, 2, 1, centered=(True, False, False))
|
||||
Box(1, 1, 2, centered=(True, False, False))
|
||||
with Locations((1, -1, 0)):
|
||||
Box(1, 2, 1, centered=(True, False, False))
|
||||
bottom_edges = blocks.edges().filter_by_position(
|
||||
Axis.Z, 0, 1, inclusive=(True, False)
|
||||
)
|
||||
Chamfer(*bottom_edges, length=0.1)
|
||||
top_edges = blocks.edges().filter_by_position(Axis.Z, 1, 2, inclusive=(False, True))
|
||||
Chamfer(*top_edges, length=0.1)
|
||||
|
||||
|
||||
if "show_object" in locals():
|
||||
show_object(blocks.part)
|
||||
Loading…
Add table
Add a link
Reference in a new issue