-
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
Showing
9 changed files
with
1,038 additions
and
52 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
[tool.poetry] | ||
name = "bike-stem-mount-v2" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Yeicor <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "src" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
build123d = "^0.4.0" | ||
yacv-server = "^0.6.14" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
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
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
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,13 +1,13 @@ | ||
import build123d as bd | ||
from build123d import * | ||
|
||
# 3D printing basics | ||
tol = 0.1 * bd.MM # Tolerance (tighter than usual) | ||
wall_min = 0.4 * bd.MM # Minimum wall width | ||
tol = 0.1 * MM # Tolerance (tighter than usual) | ||
wall_min = 0.4 * MM # Minimum wall width | ||
wall = 3 * wall_min # Recommended width for most walls of this print | ||
eps = 1e-5 * bd.MM # A small number | ||
eps = 1e-5 * MM # A small number | ||
|
||
|
||
# Some common utilities | ||
|
||
def bbox_to_box(bb: bd.BoundBox) -> bd.Box: | ||
return bd.Box(bb.size.X, bb.size.Y, bb.size.Z, mode=bd.Mode.PRIVATE).translate(bb.center()) | ||
def bbox_to_box(bb: BoundBox) -> Box: | ||
return Box(bb.size.X, bb.size.Y, bb.size.Z, mode=Mode.PRIVATE).translate(bb.center()) |
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
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