* 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>
33 lines
993 B
Plaintext
33 lines
993 B
Plaintext
// Walkie Talkie Antenna
|
|
// Antenna for the walkie talkie assembly
|
|
|
|
// Set units
|
|
@settings(defaultLengthUnit = in)
|
|
|
|
// Import parameters
|
|
import antennaLength, antennaBaseWidth, antennaBaseHeight, antennaTopWidth, antennaTopHeight from "parameters.kcl"
|
|
|
|
// Create the antenna base sketch
|
|
antennaBaseSketch = startSketchOn(XY)
|
|
|> startProfileAt([0, 0], %)
|
|
|> line(end = [antennaBaseWidth, 0])
|
|
|> line(end = [0, -antennaBaseHeight])
|
|
|> line(end = [-antennaBaseWidth, 0])
|
|
|> close()
|
|
|
|
// Create the antenna top sketch
|
|
loftPlane = offsetPlane(XY, offset = antennaLength)
|
|
antennaTopSketch = startSketchOn(loftPlane)
|
|
|> startProfileAt([
|
|
(antennaBaseWidth - antennaTopWidth) / 2,
|
|
(antennaBaseHeight - antennaTopHeight) / 2
|
|
], %)
|
|
|> xLine(length = antennaTopWidth)
|
|
|> yLine(length = -antennaTopHeight)
|
|
|> xLine(length = -antennaTopWidth)
|
|
|> close()
|
|
|
|
// Create the antenna using a loft
|
|
loft([antennaBaseSketch, antennaTopSketch])
|
|
|> appearance(color = "#000000")
|