Files
modeling-app/rust/kcl-lib/tests/subtract_regression02/input.kcl
Jess Frazelle 09f39499e9 add subtract regression tests (#6829)
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2025-05-10 13:48:38 -07:00

52 lines
1.1 KiB
Plaintext

@settings(defaultLengthUnit = in)
sketch002 = startSketchOn(XY)
sketch002Profile000 = startProfile(sketch002, at = [-0.75, 0.75])
|> yLine(length = -1.5)
|> xLine(length = 1.5)
|> arc(
angleStart = 0,
angleEnd = 90,
radius = 0.25
)
|> xLine(length = -0.688)
|> arc(
angleStart = 270,
angleEnd = 180,
radius = 0.312
)
|> yLine(length = 0.688)
|> arc(
angleStart = 0,
angleEnd = 90,
radius = 0.25
)
|> close()
extrude000 = extrude(sketch002Profile000, length = 0.655, bidirectionalLength = 0.655)
sketch003 = startSketchOn(XZ)
sketch003Profile000 = circle(
sketch003,
center = [0, 0],
radius = 0.164
)
cut000Extrude = extrude([sketch003Profile000], length = 1.0, bidirectionalLength = 0)
cut000 = subtract(extrude000, tools = cut000Extrude)
sketch004 = startSketchOn(-YZ)
sketch004Profile000 = circle(
sketch004,
center = [0, 0],
radius = 0.164
)
cut001Extrude = extrude([sketch004Profile000], length = 1.0, bidirectionalLength = 0)
cut001 = subtract(cut000, tools = cut001Extrude)