add a subtract regression test (#7018)

* add a subtraact regression test

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* also rename some github actions job so we can require them;

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* artifacts

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-05-16 13:06:56 -07:00
committed by GitHub
parent 620b7401aa
commit 729e0a7949
12 changed files with 4353 additions and 91 deletions

View File

@ -0,0 +1,38 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing subtract_regression07.kcl
---
@settings(defaultLengthUnit = in)
sketch000 = startSketchOn(XY)
sketch000Profile000 = startProfile(sketch000, at = [0.072169, 0.125])
|> xLine(length = -0.144338)
|> line(end = [-0.072169, -0.125])
|> line(end = [0.072169, -0.125])
|> xLine(length = 0.144338)
|> line(end = [0.072169, 0.125])
|> line(end = [-0.072169, 0.125])
|> close()
sketch000Profile001 = circle(sketch000, center = [0, 0], radius = 0.0795)
sketch000Profile000Holes = sketch000Profile000
|> subtract2d(tool = sketch000Profile001)
extrude000 = extrude(sketch000Profile000Holes, length = 0.1875, bidirectionalLength = 0.1875)
sketch001 = startSketchOn(offsetPlane(XY, offset = 0.25))
sketch001Profile000 = circle(sketch001, center = [0, 0], radius = 0.0945)
sketch002 = startSketchOn(offsetPlane(XY, offset = 0.1))
sketch002Profile000 = circle(sketch002, center = [0, 0], radius = 0.08)
draftCut000Extrude = loft([
sketch002Profile000,
sketch001Profile000
])
draftCut000 = subtract(extrude000, tools = draftCut000Extrude)