Add CSG operations to the Feature Tree (#6028)
* Add operation tracking for CSG boolean functions * Add CSG operations to the Feature Tree * Add just command * Add union sim test * Update output with new sim test * Add CSG subtract test * Update output from subtract test * Add intersect sim test * Update output for intersect test
This commit is contained in:
14
rust/kcl-lib/tests/intersect_cubes/input.kcl
Normal file
14
rust/kcl-lib/tests/intersect_cubes/input.kcl
Normal file
@ -0,0 +1,14 @@
|
||||
fn cube(center) {
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt([center[0] - 10, center[1] - 10], %)
|
||||
|> line(endAbsolute = [center[0] + 10, center[1] - 10])
|
||||
|> line(endAbsolute = [center[0] + 10, center[1] + 10])
|
||||
|> line(endAbsolute = [center[0] - 10, center[1] + 10])
|
||||
|> close()
|
||||
|> extrude(length = 10)
|
||||
}
|
||||
|
||||
part001 = cube([0, 0])
|
||||
part002 = cube([8, 8])
|
||||
|
||||
fullPart = intersect([part001, part002])
|
Reference in New Issue
Block a user