mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
tea_cup.py -> update to use location_at (^)
This commit is contained in:
parent
214c0d8af0
commit
7d197232a7
1 changed files with 2 additions and 4 deletions
|
|
@ -76,7 +76,7 @@ with BuildPart() as tea_cup:
|
|||
]
|
||||
# Create a path for handle creation
|
||||
with BuildLine(Plane.XZ) as handle_path:
|
||||
path_spline = Spline(
|
||||
Spline(
|
||||
handle_intersections[0] - (wall_thickness / 2, 0),
|
||||
handle_intersections[0] + (35 * MM, 30 * MM),
|
||||
handle_intersections[0] + (40 * MM, 60 * MM),
|
||||
|
|
@ -84,9 +84,7 @@ with BuildPart() as tea_cup:
|
|||
tangents=((1, 1.25), (-0.2, -1)),
|
||||
)
|
||||
# Align the cross section to the beginning of the path
|
||||
with BuildSketch(
|
||||
Plane(origin=path_spline @ 0, z_dir=path_spline % 0)
|
||||
) as handle_cross_section:
|
||||
with BuildSketch(handle_path.line ^ 0) as handle_cross_section:
|
||||
RectangleRounded(wall_thickness, 8 * MM, fillet_radius)
|
||||
sweep() # Sweep handle cross section along path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue