-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tags are globals Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! π·π (OS: ubuntu) * empty * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d7e36ee
commit 8fe2d33
Showing
17 changed files
with
216 additions
and
25 deletions.
There are no files selected for viewing
Binary file modified
BIN
+211 Bytes
(100%)
...side-scene-scale-should-match-engine-scale-Inch-scale-2-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-205 Bytes
(100%)
...cene-scale-should-match-engine-scale-Millimeter-scale-2-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-29.1 KB
(59%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-2d-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15.1 KB
(80%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.2 KB
(63%)
...pshots/extrude-on-default-planes-should-be-stable--XY-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15.3 KB
(67%)
...pshots/extrude-on-default-planes-should-be-stable--XZ-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13.7 KB
(69%)
...pshots/extrude-on-default-planes-should-be-stable--YZ-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15 KB
(66%)
...apshots/extrude-on-default-planes-should-be-stable-XY-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14.2 KB
(70%)
...apshots/extrude-on-default-planes-should-be-stable-XZ-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15.6 KB
(63%)
...apshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,149 @@ | ||
// A mounting bracket for the Focusrite Scarlett Solo audio interface | ||
// This is a bracket that holds an audio device underneath a desk or shelf. The audio device has dimensions of 144mm wide, 80mm length and 45mm depth with fillets of 6mm. This mounting bracket is designed to be 3D printed with PLA material | ||
|
||
// define constants in mm | ||
const radius = 6.0 | ||
const width = 144.0 | ||
const length = 80.0 | ||
const depth = 45.0 | ||
const thk = 4 | ||
const holeDiam = 5 | ||
const tabLength = 25 | ||
const tabWidth = 12 | ||
const tabThk = 4 | ||
|
||
// define a rectangular shape func | ||
fn rectShape = (pos, w, l) => { | ||
const rr = startSketchOn('xy') | ||
|> startProfileAt([pos[0] - (w / 2), pos[1] - (l / 2)], %) | ||
|> lineTo([pos[0] + w / 2, pos[1] - (l / 2)], %, "edge01") | ||
|> lineTo([pos[0] + w / 2, pos[1] + l / 2], %, "edge02") | ||
|> lineTo([pos[0] - (w / 2), pos[1] + l / 2], %, "edge03") | ||
|> close(%, "edge04") | ||
return rr | ||
} | ||
|
||
// define the bracket plane | ||
const bracketPlane = { | ||
plane: { | ||
origin: { x: 0, y: length / 2 + thk, z: 0 }, | ||
x_axis: { x: 1, y: 0, z: 0 }, | ||
y_axis: { x: 0, y: 0, z: 1 }, | ||
z_axis: { x: 0, y: -1, z: 0 } | ||
} | ||
} | ||
|
||
// build the bracket sketch around the body | ||
fn bracketSketch = (w, d, t) => { | ||
const s = startSketchOn(bracketPlane) | ||
|> startProfileAt([-w / 2 - t, d + t], %) | ||
|> lineTo([-w / 2 - t, -t], %, "edge1") | ||
|> lineTo([w / 2 + t, -t], %, "edge2") | ||
|> lineTo([w / 2 + t, d + t], %, "edge3") | ||
|> lineTo([w / 2, d + t], %, "edge4") | ||
|> lineTo([w / 2, 0], %, "edge5") | ||
|> lineTo([-w / 2, 0], %, "edge6") | ||
|> lineTo([-w / 2, d + t], %, "edge7") | ||
|> close(%, "edge8") | ||
return s | ||
} | ||
|
||
// build the body of the bracket | ||
const bracketBody = bracketSketch(width, depth, thk) | ||
|> extrude(length + 2 * thk, %) | ||
|> fillet({ | ||
radius: radius, | ||
tags: [ | ||
getNextAdjacentEdge("edge7", %), | ||
getNextAdjacentEdge("edge2", %), | ||
getNextAdjacentEdge("edge3", %), | ||
getNextAdjacentEdge("edge6", %) | ||
] | ||
}, %) | ||
|
||
// define the tab plane | ||
const tabPlane = { | ||
plane: { | ||
origin: { x: 0, y: 0, z: depth + thk }, | ||
x_axis: { x: 1, y: 0, z: 0 }, | ||
y_axis: { x: 0, y: 1, z: 0 }, | ||
z_axis: { x: 0, y: 0, z: 1 } | ||
} | ||
} | ||
|
||
// build the tabs of the mounting bracket (right side) | ||
const tabsR = startSketchOn(tabPlane) | ||
|> startProfileAt([width / 2 + thk, length / 2 + thk], %) | ||
|> line([tabWidth, -tabLength / 3], %, "edge11") | ||
|> line([0, -tabLength / 3 * 2], %, "edge12") | ||
|> line([-tabWidth, -tabLength / 3], %, "edge13") | ||
|> close(%, "edge14") | ||
|> hole(circle([ | ||
width / 2 + thk + tabWidth / 2, | ||
length / 2 + thk - (tabLength / (3 / 2)) | ||
], holeDiam / 2, %), %) | ||
|> extrude(-tabThk, %) | ||
|> fillet({ | ||
radius: holeDiam / 2, | ||
tags: [ | ||
getNextAdjacentEdge("edge12", %), | ||
getNextAdjacentEdge("edge13", %) | ||
] | ||
}, %) | ||
|> patternLinear3d({ | ||
axis: [0, -1, 0], | ||
repetitions: 1, | ||
distance: length + 2 * thk - (tabLength * 4 / 3) | ||
}, %) | ||
|
||
// build the tabs of the mounting bracket (left side) | ||
const tabsL = startSketchOn(tabPlane) | ||
|> startProfileAt([-width / 2 - thk, length / 2 + thk], %) | ||
|> line([-tabWidth, -tabLength / 3], %, "edge21") | ||
|> line([0, -tabLength / 3 * 2], %, "edge22") | ||
|> line([tabWidth, -tabLength / 3], %, "edge23") | ||
|> close(%, "edge24") | ||
|> hole(circle([ | ||
-width / 2 - thk - (tabWidth / 2), | ||
length / 2 + thk - (tabLength / (3 / 2)) | ||
], holeDiam / 2, %), %) | ||
|> extrude(-tabThk, %) | ||
|> fillet({ | ||
radius: holeDiam / 2, | ||
tags: [ | ||
getNextAdjacentEdge("edge21", %), | ||
getNextAdjacentEdge("edge22", %) | ||
] | ||
}, %) | ||
|> patternLinear3d({ | ||
axis: [0, -1, 0], | ||
repetitions: 1, | ||
distance: length + 2 * thk - (tabLength * 4 / 3) | ||
}, %) | ||
|
||
// define a plane for retention bumps | ||
const retPlane = { | ||
plane: { | ||
origin: { x: -width / 2 + 20, y: 0, z: 0 }, | ||
x_axis: { x: 0, y: 1, z: 0 }, | ||
y_axis: { x: 0, y: 0, z: 1 }, | ||
z_axis: { x: 1, y: 0, z: 0 } | ||
} | ||
} | ||
|
||
// build the retention bump in the front | ||
const retFront = startSketchOn(retPlane) | ||
|> startProfileAt([-length / 2 - thk, 0], %) | ||
|> line([0, thk], %) | ||
|> line([thk, -thk], %) | ||
|> close(%) | ||
|> extrude(width - 40, %) | ||
|
||
// build the retention bump in the back | ||
const retBack = startSketchOn(retPlane) | ||
|> startProfileAt([length / 2 + thk, 0], %) | ||
|> line([0, thk], %) | ||
|> line([-thk, 0], %) | ||
|> line([0, -thk], %) | ||
|> close(%) | ||
|> extrude(width - 40, %) |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.