Skip to content

Commit 3370740

Browse files
committed
updates
Signed-off-by: Jess Frazelle <[email protected]>
1 parent 9405dd2 commit 3370740

File tree

10 files changed

+16
-25
lines changed

10 files changed

+16
-25
lines changed

tests/a_2x4_lego_brick.png

1 Byte
Loading

tests/walkie-talkie/antenna.kcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@settings(defaultLengthUnit = in)
2-
// Antenna
32

3+
// Antenna
44

55
// Set units
66

7-
87
// import constants
98
import height, width, antennaBaseWidth, antennaBaseHeight, antennaTopWidth, antennaTopHeight from "globals.kcl"
109

@@ -33,7 +32,7 @@ sketch001 = startSketchOn(antennaPlane)
3332
|> close()
3433

3534
// Create the antenna top sketch
36-
loftPlane = offsetPlane('XY', offset = height / 2 + 3)
35+
loftPlane = offsetPlane(XY, offset = height / 2 + 3)
3736

3837
sketch002 = startSketchOn(loftPlane)
3938
|> startProfileAt([

tests/walkie-talkie/body.kcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
@settings(defaultLengthUnit = in)
2-
// Walkie talkie body
32

3+
// Walkie talkie body
44

55
// Set units
66

7-
87
// Import constants
98
import height, width, thickness, chamferLength, offset, screenWidth, screenHeight, screenYPosition, screenDepth, speakerBoxWidth, speakerBoxHeight from "globals.kcl"
109

11-
bodySketch = startSketchOn('XZ')
10+
bodySketch = startSketchOn(XZ)
1211
|> startProfileAt([-width / 2, height / 2], %)
1312
|> xLine(length = width, tag = $chamfer1)
1413
|> yLine(length = -height, tag = $chamfer2)

tests/walkie-talkie/button.kcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@settings(defaultLengthUnit = in)
2-
// Walkie Talkie button
32

3+
// Walkie Talkie button
44

55
// Set units
66

7-
87
// Import constants
98
import screenHeight, buttonWidth, tolerance, buttonHeight, buttonThickness from "globals.kcl"
109

tests/walkie-talkie/case.kcl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
@settings(defaultLengthUnit = in)
2-
// Walkie talkie case
32

3+
// Walkie talkie case
44

55
// Set units
66

7-
87
// Import constants and Zoo logo
98
import width, height, chamferLength, offset, screenWidth, screenHeight, screenYPosition, screenDepth, speakerBoxWidth, speakerBoxHeight, squareHoleSideLength, caseTolerance from "globals.kcl"
109
import zLogo, oLogo, oLogo2 from "zoo-logo.kcl"
1110

12-
plane = offsetPlane("XZ", offset = 1)
11+
plane = offsetPlane(XZ, offset = 1)
1312

1413
fn screenHole(sketchStart) {
1514
sketch006 = startSketchOn(sketchStart)
@@ -39,7 +38,7 @@ fn squareHolePattern(plane, x, y) {
3938
|> patternTransform2d(instances = 11, transform = transformY)
4039
return squareHolePatternSketch
4140
}
42-
sketch005 = startSketchOn(offsetPlane("XZ", offset = 1))
41+
sketch005 = startSketchOn(offsetPlane(XZ, offset = 1))
4342
|> startProfileAt([
4443
-width / 2 + offset + caseTolerance,
4544
height / 2 - (chamferLength + (offset + caseTolerance) / 2 * cos(toRadians(45)))

tests/walkie-talkie/globals.kcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@settings(defaultLengthUnit = in)
2-
// Global constants for the walkie talkie
32

3+
// Global constants for the walkie talkie
44

55
// Set units
66

7-
87
// body
98
export height = 4
109
export width = 2.5

tests/walkie-talkie/knob.kcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@settings(defaultLengthUnit = in)
2-
// Walkie talkie knob
32

3+
// Walkie talkie knob
44

55
// Set units
66

7-
87
// Import constants
98
import width, thickness, height, knobDiameter, knobHeight, knobRadius from "globals.kcl"
109

tests/walkie-talkie/main.kcl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
@settings(defaultLengthUnit = in)
2+
23
// Walkie Talkie
34
// A portable, handheld two-way radio device that allows users to communicate wirelessly over short to medium distances. It operates on specific radio frequencies and features a push-to-talk button for transmitting messages, making it ideal for quick and reliable communication in outdoor, work, or emergency settings.
45

5-
66
// Set units
77

8-
98
// Import parts and constants
109
import "body.kcl"
1110
import "antenna.kcl"
@@ -28,19 +27,19 @@ antenna
2827
button([
2928
-(screenWidth / 2 + tolerance),
3029
screenYPosition
31-
], 0, offsetPlane("XZ", offset = thickness))
30+
], 0, offsetPlane(XZ, offset = thickness))
3231
button([
3332
-(screenWidth / 2 + tolerance),
3433
screenYPosition - (screenHeight / 2)
35-
], 0, offsetPlane("XZ", offset = thickness))
34+
], 0, offsetPlane(XZ, offset = thickness))
3635
button([
3736
screenWidth / 2 + tolerance,
3837
screenYPosition - screenHeight
39-
], 180, offsetPlane("XZ", offset = thickness))
38+
], 180, offsetPlane(XZ, offset = thickness))
4039
button([
4140
screenWidth / 2 + tolerance,
4241
screenYPosition - (screenHeight / 2)
43-
], 180, offsetPlane("XZ", offset = thickness))
42+
], 180, offsetPlane(XZ, offset = thickness))
4443

4544
// Import the talk button
4645
talkButton

tests/walkie-talkie/talk-button.kcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@settings(defaultLengthUnit = in)
2-
// Walkie talkie talk button
32

3+
// Walkie talkie talk button
44

55
// Set units
66

7-
87
// Import constants
98
import width, thickness, talkButtonSideLength, talkButtonHeight from "globals.kcl"
109

tests/walkie-talkie/zoo-logo.kcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Zoo logo
22

3-
43
// Define a function to draw the ZOO "Z"
54
export fn zLogo(surface, origin, scale) {
65
zSketch = surface

0 commit comments

Comments
 (0)