-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d23aae
commit cd85438
Showing
10 changed files
with
10,481 additions
and
31 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"python.analysis.extraPaths": [ | ||
"/root/.vscode-server/extensions/roipoussiere.cadquery-0.1.3/stubs" | ||
] | ||
], | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env -S pkgx +pip python | ||
|
||
# vpype read default/swoon-Edge_Cuts_LEFT.svg linemerge --tolerance 3mm linesort reloop linesimplify write default/swoon-Edge_Cuts_LEFT_vpype.svg | ||
|
||
from build123d import * | ||
from ocp_vscode import show_object as show, set_port | ||
|
||
set_port(3939) | ||
|
||
with BuildPart() as void: | ||
with BuildSketch(Plane.XY.offset(3 * MM)) as edge_cuts: | ||
with BuildLine() as line: | ||
svg = import_svg("default/swoon-Edge_Cuts_LEFT_vpype.svg") | ||
add(svg) | ||
make_face() | ||
extrude(amount = 3 * MM) | ||
|
||
with BuildPart() as case: | ||
with BuildSketch() as outline: | ||
add(edge_cuts) | ||
offset(amount=2 * MM, min_edge_length=3 * MM) | ||
extrude(amount=6 * MM) | ||
|
||
add(void, mode=Mode.SUBTRACT) | ||
# top_face = case.faces().sort_by(Axis.Z)[-1] | ||
# fillet(top_face.edges(), radius=0.3 * MM) | ||
|
||
show(case) | ||
export_step(case.part, file_path="case.step") | ||
# export_stl(case.part, file_path="case.stl") |
Oops, something went wrong.