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:
19
rust/kcl-lib/tests/pattern_circular_in_module/thing.kcl
Normal file
19
rust/kcl-lib/tests/pattern_circular_in_module/thing.kcl
Normal file
@ -0,0 +1,19 @@
|
||||
export fn thing() {
|
||||
exampleSketch = startSketchOn(XZ)
|
||||
|> startProfileAt([.5, 25], %)
|
||||
|> line(end = [0, 5])
|
||||
|> line(end = [-1, 0])
|
||||
|> line(end = [0, -5])
|
||||
|> close()
|
||||
|> patternCircular2d(
|
||||
center = [0, 0],
|
||||
instances = 4,
|
||||
arcDegrees = 360,
|
||||
rotateDuplicates = true,
|
||||
)
|
||||
|
||||
return extrude(exampleSketch, length = 1)
|
||||
}
|
||||
|
||||
// This makes it run in isolated mode when the function is imported.
|
||||
thing()
|
Reference in New Issue
Block a user