mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-09 04:10:36 -08:00
Rename to Topology Selection and Exploration, add section on new_edges, elaborate on GroupBy
This commit is contained in:
parent
ee11c3517d
commit
50b1d5b5d5
62 changed files with 118 additions and 72 deletions
|
|
@ -1,28 +0,0 @@
|
|||
import os
|
||||
from copy import copy
|
||||
|
||||
from build123d import *
|
||||
from ocp_vscode import *
|
||||
|
||||
working_path = os.path.dirname(os.path.abspath(__file__))
|
||||
filedir = os.path.join(working_path, "..", "..", "assets", "selectors_operators")
|
||||
|
||||
with BuildPart() as fins:
|
||||
with GridLocations(4, 6, 4, 4):
|
||||
Box(2, 3, 10, align=(Align.CENTER, Align.CENTER, Align.MIN))
|
||||
|
||||
with BuildPart() as part:
|
||||
Box(34, 48, 5, align=(Align.CENTER, Align.CENTER, Align.MAX))
|
||||
with GridLocations(20, 27, 2, 2):
|
||||
add(fins)
|
||||
|
||||
without = copy(part)
|
||||
|
||||
target = part.edges().group_by(Axis.Z)[-1].group_by(Edge.length)[-1]
|
||||
fillet(target, .75)
|
||||
|
||||
show(without)
|
||||
save_screenshot(os.path.join(filedir, "group_axis_without.png"))
|
||||
|
||||
show(part)
|
||||
save_screenshot(os.path.join(filedir, "group_axis_with.png"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue