KCL: Migrate hole to kwargs (#6382)

Previously:

`|> hole(circle(radius = 2, center = p), %)`

Now:

`|> subtract2d(tool = circle(radius = 2, center = p))`
This commit is contained in:
Adam Chalmers
2025-04-26 15:31:51 -05:00
committed by GitHub
parent 5a18f551aa
commit 6e115c19d5
116 changed files with 12912 additions and 12847 deletions

View File

@ -28,19 +28,19 @@ fn caster = (originStart) => {
|> xLine(length = -3.543)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
|> hole(circle(center = [
|> subtract2d(tool = circle(center = [
(3.543 - 2.756) / 2,
(3.543 - 2.756) / 2
], radius = 8.8 / 2 / 25.4), %)
|> hole(circle(center = [
|> subtract2d(tool = circle(center = [
(3.543 - 2.756) / 2 + 2.756,
(3.543 - 2.756) / 2
], radius = 8.8 / 2 / 25.4 ), %)
|> hole(circle(center = [
|> subtract2d(tool = circle(center = [
(3.543 - 2.756) / 2,
(3.543 - 2.756) / 2 + 2.756
], radius = 8.8 / 2 / 25.4 ), %)
|> hole(circle(center = [
|> subtract2d(tool = circle(center = [
(3.543 - 2.756) / 2 + 2.756,
(3.543 - 2.756) / 2 + 2.756
], radius = 8.8 / 2 / 25.4 ), %)