Skip to content

Commit

Permalink
Next (#175)
Browse files Browse the repository at this point in the history
* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update samples for kwarg patterns

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* patternTransform also uses kwargs

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Restore accidental deletes

* Update offsetPlane for keyword args

* Fix up next

* Add color cube back to README.md

* Fix color-cube example

* boat (#141)

* boat

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update header of boat-parts.kcl

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Add some more clarification to the description

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* update to latest unit syntax

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update for breaking changes in KCL

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update for breaking changes in KCL

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update for breaking changes in KCL

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* updated KCL for linear pattern 2d

* updated description

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* Update process (#168)

* KCL 37 release (#169)

- pattern functions and `offsetPlane` now use keyword arguments

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ryan Barton <[email protected]>

* Fix assemblies to not rely on import side-effects (#171)

* Fix walkie-talkie to not rely on import side-effects

* Fix robot arm also

* In the realm of scripts and screens, adding a dash of mechanical dreams.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* update requirements.txt and workflow

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* update for new kw args

* In the realm of scripts and screens, adding a dash of mechanical dreams.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Chalmers <[email protected]>
Co-authored-by: Jonathan Tran <[email protected]>

* use builtin polygon KCL function instead of a custom function (#167)

* use builtin polygon KCL function instead of a custom function

* In the realm of scripts and screens, adding a dash of mechanical dreams.

* In the realm of scripts and screens, adding a dash of mechanical dreams.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Barton/update kcl.py (#174)

* bump zoo kcl requirement

* In the realm of scripts and screens, adding a dash of mechanical dreams.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* use app ID when running action

* update workflow file

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Chalmers <[email protected]>
Co-authored-by: Jonathan Tran <[email protected]>
  • Loading branch information
4 people authored Feb 19, 2025
1 parent 490578d commit b71cf6f
Show file tree
Hide file tree
Showing 6 changed files with 3,477 additions and 2,723 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/output-from-kcl-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.KCL_SAMPLES_BOT_APP_ID }}
private-key: ${{ secrets.KCL_SAMPLES_BOT_PRIVATE_KEY }}

- name: Checkout repo
uses: actions/checkout@v4

Expand Down
36 changes: 20 additions & 16 deletions dodecahedron/main.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,8 @@ edgeL = 4 * circR / (sqrt(3) * (1 + sqrt(5)))
// pentagon radius
pentR = edgeL / 2 / sin(toRadians(36))

// define a function for a polygon
fn ngon(plane, numSides, radius) {
step = 1 / numSides * tau()
sketch001 = startSketchOn(plane)
|> startProfileAt([cos(0) * radius, sin(0) * radius], %)
return reduce([1..numSides], sketch001, fn(i, sg) {
x = cos(step * i) * radius
y = sin(step * i) * radius
return line(sg, endAbsolute = [x, y])
})
|> close()
}

// Define a plane for the bottom angled face
planeBottomSide = {
plane = {
plane = {
origin = [
-inscR * cos(toRadians(toDegrees(dihedral) - 90)),
Expand All @@ -51,9 +38,26 @@ planeBottomSide = {
}
}

// Create a regular pentagon inscribed in a circle of radius pentR
bottomFace = startSketchOn('XY')
|> polygon({
radius = pentR,
numSides = 5,
center = [0, 0],
inscribed = true
}, %)

bottomSideFace = startSketchOn(plane)
|> polygon({
radius = pentR,
numSides = 5,
center = [0, 0],
inscribed = true
}, %)

// Extrude the faces in each plane
bottom = extrude(ngon("XY", 5, pentR), length = wallThickness)
bottomSide = extrude(ngon(planeBottomSide, 5, pentR), length = wallThickness)
bottom = extrude(bottomFace, length = wallThickness)
bottomSide = extrude(bottomSideFace, length = wallThickness)

// Pattern the sides so we have a full dodecahedron
bottomBowl = patternCircular3d(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pillow==11.1.0
requests==2.32.3
zoo-kcl==0.3.37
zoo-kcl==0.3.38
Binary file modified screenshots/multi-axis-robot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b71cf6f

Please sign in to comment.