Skip to content

Commit

Permalink
Update test file, bump to 0.1.36 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchalmers authored Sep 23, 2024
1 parent cf0d188 commit be3a0d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zoo-kcl"
version = "0.1.35"
version = "0.1.36"
edition = "2021"
repository = "https://github.com/kittycad/kcl.py"

Expand Down
24 changes: 16 additions & 8 deletions files/lego.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ const shellExtrude = startSketchOn(s, "start")

// Create the pegs on the top of the base
const peg = startSketchOn(s, 'end')
|> circle([
-(pitch * (wbumps - 1) / 2),
-(pitch * (lbumps - 1) / 2)
], bumpDiam / 2, %)
|> circle(
{
center: [
-(pitch * (wbumps - 1) / 2),
-(pitch * (lbumps - 1) / 2)
],
radius: bumpDiam / 2,
}, %)
|> patternLinear2d({
axis: [1, 0],
repetitions: wbumps - 1,
Expand All @@ -80,10 +84,14 @@ const peg = startSketchOn(s, 'end')

// Create the pegs on the bottom of the base
const tubePattern = startSketchOn(tubeFace)
|> circle([
-(pitch * (wbumps - 1) / 2 - (pitch / 2)),
-(pitch * (lbumps - 1) / 2 - (pitch / 2))
], bumpDiam / 2, %)
|> circle(
{
center: [
-(pitch * (wbumps - 1) / 2 - (pitch / 2)),
-(pitch * (lbumps - 1) / 2 - (pitch / 2))
],
radius: bumpDiam / 2
}, %)
|> patternLinear2d({
axis: [1, 0],
repetitions: wbumps - 2,
Expand Down

0 comments on commit be3a0d6

Please sign in to comment.