Fix patterning in module to not fail when importing function from the module (#6082)

* Add failing test

* Update output to show execution error

* Fix circular pattern to not error in isolated or mock mode

* Update output after fix

* Add failing test for pattern linear 2D

* Add failing output

* Fix isolated execution in linear patterns

* Update output after linear fix
This commit is contained in:
Jonathan Tran
2025-03-31 19:46:29 -04:00
committed by GitHub
parent 566143757f
commit bb4ed59191
24 changed files with 2492 additions and 9 deletions

View File

@ -0,0 +1,13 @@
export fn thing() {
return startSketchOn(XZ)
|> circle(center = [0, 0], radius = 1)
|> patternLinear2d(
axis = [1, 0],
instances = 7,
distance = 4
)
|> extrude(length = 1)
}
// This makes it run in isolated mode when the function is imported.
thing()