allow more than one tool (#6945)
* allow more than one tool 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 tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump kcl Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
22
rust/kcl-lib/tests/subtract_with_pattern/input.kcl
Normal file
22
rust/kcl-lib/tests/subtract_with_pattern/input.kcl
Normal file
@ -0,0 +1,22 @@
|
||||
sketch001 = startSketchOn(XY)
|
||||
profile001 = startProfile(sketch001, at = [2.65, 12.2])
|
||||
|> xLine(length = 23.49)
|
||||
|> yLine(length = -22.68)
|
||||
|> xLine(length = -24.2)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
|> close()
|
||||
|
||||
extrude001 = extrude(profile001, length = 500)
|
||||
|
||||
sketch002 = startSketchOn(XZ)
|
||||
profile002 = circle(sketch002, center = [17.5, 22.02], radius = 10.16)
|
||||
|
||||
extrude002 = extrude(profile002, length = 50)
|
||||
myPatterns = patternLinear3d(extrude002,
|
||||
instances = 10,
|
||||
distance = 30,
|
||||
axis = [0,0,1])
|
||||
|
||||
subtract([extrude001], tools = [myPatterns])
|
||||
|> rotate(angle = 90, axis = [0,1,0]) // we do this to ensure the id is okay after the subtract
|
||||
|
Reference in New Issue
Block a user