* update all kcl-samples * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * Update kcl-samples simulation test output --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com> Co-authored-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
32 lines
923 B
Plaintext
32 lines
923 B
Plaintext
// Walkie talkie talk button
|
|
|
|
// Set units
|
|
@settings(defaultLengthUnit = in)
|
|
|
|
// Import parameters
|
|
import width, thickness, talkButtonSideLength, talkButtonHeight from "parameters.kcl"
|
|
|
|
// Create the talk button sketch
|
|
talkButtonSketch = startSketchOn(YZ)
|
|
|> startProfileAt([
|
|
-talkButtonSideLength / 2,
|
|
talkButtonSideLength / 2
|
|
], %)
|
|
|> xLine(length = talkButtonSideLength, tag = $tag1)
|
|
|> yLine(length = -talkButtonSideLength, tag = $tag2)
|
|
|> xLine(length = -talkButtonSideLength, tag = $tag3)
|
|
|> close(tag = $tag4)
|
|
|
|
// create the talk button and apply fillets
|
|
extrude(talkButtonSketch, length = talkButtonHeight)
|
|
|> fillet(
|
|
radius = 0.050,
|
|
tags = [
|
|
getNextAdjacentEdge(tag1),
|
|
getNextAdjacentEdge(tag2),
|
|
getNextAdjacentEdge(tag3),
|
|
getNextAdjacentEdge(tag4)
|
|
],
|
|
)
|
|
|> appearance(color = '#D0FF01', metalness = 90, roughness = 90)
|