1841e63021
Misc docs polishing ( #6712 )
...
* Fake modules for Rust std lib functions
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Include the missing @ in Rust std lib fns
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Move revolve and mirror2d to better modules
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use docs from KCL mods for type summaries
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use type docs to describe types from KCL std lib
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 16:09:59 +12:00
9c246d6621
Fix units bug with involuteCircular ( #6711 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 14:58:53 +12:00
9c52f5b19a
Add tags to Rust std lib functions ( #6701 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-05-06 14:14:11 +12:00
1ed6bb8a7c
change to no longer parallel for edges ( #6705 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-05-06 01:06:20 +00:00
89bae66257
KCL: User-defined KCL functions in examples etc now use keywords ( #6603 )
...
Preparing for the removal of positional functions from the language. The first big step is to change all our KCL code examples, test code, public samples etc to all use keyword functions.
Apologies for how large this PR is. Most of it is:
- Changing example KCL that defined its own functions, so the functions now use keyword arguments rather than positional arguments. E.g. change `cube([20, 20])` to be `cube(center = [20, 20])`.
- Some parts of the code assumed positional code and didn't handle keyword calls, e.g. the linter would only check for positional calls to startSketchOn. Now they should work with either positional or keyword.
- Update all the artifacts
This does _not_ remove support for positional calls. That will be in a follow-up PR.
2025-05-01 12:36:51 -04:00
ccd5b0272d
Add math functions back to the prelude ( #6595 )
...
* Add math functions back to the prelude
* Update output
* Update docs
2025-04-30 11:07:05 -04:00
bae875382c
Replace plane strings with literals ( #6592 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 05:13:11 +00:00
644c561815
Declare std::math in KCL (BREAKING) ( #6588 )
...
Declare std::math in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 03:59:19 +00:00
9c29756a38
lint default planes and add a suggestion ( #6587 )
...
lint default planes and other plane cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-30 02:11:02 +00:00
0ea0d1703e
Remove deprecated syntax ( #6561 )
...
* Remove deprecated syntax
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* fix one test
* fix sketch on revolved face test
* fix test: empty-scene default-planes act as expected
* fix up more tests
* another fix
* remove another const
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch >
2025-04-30 13:12:40 +12:00
844f229b5a
Remove trig functions from prelude and change their unit handling (BREAKING) ( #6565 )
...
Remove trig functions from prelude and change their unit handling
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-30 12:40:11 +12:00
e0cd3efc64
fix edge cuts & clone ( #6572 )
...
* fix edge cuts & clone
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix edge_id
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* code comemnt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-29 16:51:52 +00:00
77e3efde9a
Deterministic parallelized snaps ( #6527 )
...
* initial pass
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 >
changes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
more updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
serde variant name
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 >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
Signed-off-by: Jess Frazelle <github@jessfraz.com >
some sort
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 >
updates
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 >
updates
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 >
updates
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 >
updates
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
sort the edges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
u[dates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
u[dates
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
cleanups
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 >
updates
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 >
updates
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 >
updates
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add bs-to-kcl
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 >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
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 >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-29 13:38:52 +00:00
aca5fdb521
Remove some deprecated functions from std ( #6531 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-28 20:24:18 -04:00
1bd570ceb9
Remove unnecessary docs ( #6559 )
...
These aren't used anymore
2025-04-28 22:42:01 +00:00
3a23ec1bee
Create std::units module ( #6528 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-29 08:41:31 +12:00
d96a4d3337
Improvements to axis handling ( #6530 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-29 08:29:22 +12:00
efba773635
Move operations on solids to be declared in KCL ( #6462 )
...
* Declare chamfer in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Ignore more in the simulation tests
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Declare fillet in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Move shell and hollow to KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-28 14:20:38 +12:00
4439229ad2
turn back on the test i tturned off ( #6522 )
...
* random other cahnges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* turn back on test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* lots of enhancements
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mesh test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* mesh test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check panics
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cleanup
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* if running in vitest make single threadedd
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* check if running in vitest
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* console logs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-27 23:54:32 +00:00
24465cf463
Parallelize the artifact graph only time suck ( #6482 )
...
* parallelize the artifact only time suck
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
make wasm safe
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* artifact graph things
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 >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-27 04:21:26 +00:00
0f88598dc0
BREAKING: Migrate math functions to keyword args ( #6491 )
2025-04-26 23:33:41 +00:00
6e115c19d5
KCL: Migrate hole to kwargs ( #6382 )
...
Previously:
`|> hole(circle(radius = 2, center = p), %)`
Now:
`|> subtract2d(tool = circle(radius = 2, center = p))`
2025-04-26 15:31:51 -05:00
8de648f0db
getCommonEdge as default way of filleting ( #6043 )
...
* Common edge faces into artifact graph
* clean up
* kingdom of tags
* add tests
* hook up tags with edge treatments
* update unit tests
* update e2e
* clean up
* more fix up after main merge
* fmt
* revolve fix
* fix new circular dependency
* fix revolve
* remove numbers from circ deps, makes diffs bad
* sim test updates
* try and get tests working
* update
* Fix tsc error
---------
Co-authored-by: max-mrgrsk <156543465+max-mrgrsk@users.noreply.github.com >
Co-authored-by: max <margorskyi@gmail.com >
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-26 04:00:28 +00:00
50f8131d83
Kwargs: map and reduce ( #6480 )
...
Migrate array's `map`, `reduce` and `push` functions to use keyword arguments.
2025-04-25 19:09:03 -05:00
ffbe20b586
Kwargs: startProfileAt ( #6424 )
...
Previous:
```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```
New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
2025-04-25 21:01:35 +00:00
0e945b6457
properly close the context ( #6485 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-24 19:37:22 +00:00
8f61ee1d2f
Change getOppositeEdge, getNextAdjacentEdge, and getPreviousAdjacentEdge to keyword args ( #6469 )
...
* Change getOppositeEdge, getNextAdjacentEdge, and getPreviousAdjacentEdge to keyword args
* Update generated docs
2025-04-24 12:39:37 -04:00
b02dbd4fe6
Kwargs: leg helpers ( #6459 )
...
legLen, legAngX, legAngY moved to keyword arguments
2025-04-24 09:53:19 -05:00
668f6671a9
BREAKING: Remove angleToMatchLengthX and angleToMatchLengthY ( #6451 )
...
* Remove angleToMatchLengthX and angleToMatchLengthY from constraint code generation
* Change KCL stdlib functions to be deprecated
* Remove references from TS tests
* Remove angleToMatchLengthX and angleToMatchLengthY
* Update docs
* Fix file paths
2025-04-24 14:33:27 +00:00
83a87b046f
Declare std::offsetPlane in KCL ( #6344 )
...
* Declare std::offsetPlane in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use two axes to define planes in KCL
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-24 22:01:27 +12:00
510d74f2c7
Add clone ( #5462 )
...
* updates
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
update the extrude idds
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix sample
Signed-off-by: Jess Frazelle <github@jessfraz.com >
better docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix the start and end tag
Signed-off-by: Jess Frazelle <github@jessfraz.com >
better docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
new tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
codespell
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 >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix examples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix some stuff
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 >
* add another test for fillet
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Update rust/kcl-lib/src/std/clone.rs
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add sweep test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* revolve test;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* Update rust/kcl-lib/src/std/clone.rs
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
* add another test for fillet
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* allow cloning an imported geometry;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* allow for imported geometry
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update docs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-24 04:26:09 +00:00
457ab28f74
Appearance import fixes ( #6466 )
...
* fix appearance imports
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix appearance
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-24 00:43:16 +00:00
6bf74379a7
Kwargs: hollow ( #6438 )
2025-04-23 18:35:33 +00:00
a46186573c
Kwargs: profileStart/x/y ( #6439 )
2025-04-23 15:21:58 +00:00
b7385d5f25
Turn on units of measure (BREAKING CHANGE) ( #6343 )
...
* Turn on uom checks
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Convert all lengths to mm for engine calls
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-22 22:58:35 +00:00
f99e44e371
Kwargs: assert functions ( #6406 )
...
Closes https://github.com/KittyCAD/modeling-app/issues/6408
2025-04-22 17:44:52 +00:00
e4e18dfd4b
Coerce the result of a function call to the function's return type ( #6309 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-22 11:00:53 +12:00
f8ca6ad746
BREAKING: Change polygon to keyword args ( #6385 )
...
* Change polygon to keyword args
* Update docs
* Update generated output
* Update docs to mention the default for inscribed
* Appease clippy
* Remove tag parameter
* Update docs since removing tag
* Remove inscribed from autocomplete snippet since the default is true
2025-04-21 18:29:32 +00:00
790613e708
KCL: Convert bezierCurve to use keyword args ( #6381 )
2025-04-20 20:10:27 -05:00
90acc00369
Kwargs migration: arc/arcTo ( #6334 )
2025-04-18 17:40:44 -05:00
bd4bad0020
allow sending async commands to engine ( #6342 )
...
* start of async
Signed-off-by: Jess Frazelle <github@jessfraz.com >
check at end if the async commands completed
Signed-off-by: Jess Frazelle <github@jessfraz.com >
run at the end of inner_run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
set import as async
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 >
add to the wasm side
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fire
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* flake
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup for awaiting on import
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 >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add a test where we import then do a bunch of other stuff
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup to see
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cross platform time
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 >
* another appearance tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new docs and tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* dont loop so tight
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-17 17:22:19 -07:00
7fce38b212
KCL: angledLineThatIntersects migrate to kwargs ( #6296 )
...
* KCL: Convert angledLineThatIntersects to use kwargs
* Update KCL tests and samples
* WIP
* Fix tsc and lint errors
* Fix missing cases
* Fix modifyAst unit tests
* Fix sketch unit tests
* Fix std unit tests
* Fix to not have extra docs
* Fix more unit tests
* Fix bench test
* Fix e2e tests to use new kw args
* tiny lint
* Fix adding constraint from UI to work
* Fix to use labeledArg constraints and use the correct order of args
* Fix selections e2e test
* Fix e2e test expectation
App was working as expected, but the e2e test was
expecting the old code, not the new code.
* Fix order of constraints in unit test
* Update docs
* Fix KCL formatting
* Update output
---------
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-15 02:06:55 +00:00
160f55ede5
BREAKING: More units of measure work and keyword args ( #6291 )
...
* More units of measure work
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Update CSG output since engine change
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Nick Cameron <nrc@ncameron.org >
2025-04-14 09:58:19 +00:00
7d7b153085
Add START and END constants to std ( #6270 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-14 20:37:45 +12:00
9e1f1152e3
Involute curve for sketch ( #6258 )
...
* WIP: Involute circles in KCL
* first pass involute end calculation
* fmt
* cleanup
* involute snapshot
* actually update markdown
* remove debug build stuff
* spacing
---------
Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev >
2025-04-11 21:59:11 +01:00
60d2be9ff2
Fix angledLine error messages to recommend the right keyword args ( #6290 )
...
* Fix angledLine error messages to recommend the right keyword args
* Update generated docs
2025-04-11 20:03:57 +00:00
0f59894d66
Hide sweep artifacts after automatically ( #6287 )
...
* automatically hide the trajectory sketch agter a sweep
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 15:53:53 -04:00
319c60d4fa
BREAKING: Change tangential arc to keyword args ( #6266 )
...
* Change tangentialArc, tangentialArcTo, and tangentialArcToRelative to keyword args
* Change tangentialArc offset to angle and convert to kw arg calls
* Fix lints
* Fix sketch errors and all unit tests passing
* Fix tangentialArcTo calls in KCL samples
* Update tangentialArc in samples
* Update sim test output
* Fix formatting
* Fix mistake in merge
* Fix gear rack sample
* Update output after more samples fixes
* Update gear rack output
* Add end label to docs snippet
* Fix to not add endAbsolute for an arc with radius or angle arguments
* Update docs outputs
* Fix formatting
* Fix executor tests
* Fix formatting
* Fix bench input files
* Fix spelling
* Improve error messages
---------
Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev >
2025-04-11 14:17:20 -04:00
1f6b90d383
#6182 Improve calculate_circle_center ( #6192 )
...
* add tests for calculate_circle_center - the first one succeeds with the current impl
* fix calculate_circle_center
* comment cleanup
* clippy
* comment format
* update circle_three_point sim test snapshot for slight floating point changes introduced by calculate_circle_center refactor
* use TAU instead of 2 * PI
* clippy
2025-04-11 12:43:18 +02:00
a63e51e2ad
Remove import function from std ( #6241 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-11 03:11:59 +00:00