more subtract regression tests (#6831)

updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-05-10 16:23:55 -07:00
committed by GitHub
parent 09f39499e9
commit f73831ac27
19 changed files with 6961 additions and 0 deletions

View File

@ -0,0 +1,39 @@
@settings(defaultLengthUnit = in)
sketch001 = startSketchOn(XY)
sketch001Profile000 = startProfile(sketch001, at = [0, 0])
|> xLine(length = 0.937)
|> arc(
angleStart = 270,
angleEnd = 360,
radius = 2.313
)
|> yLine(length = 0.937)
sketch000 = startSketchOn(YZ)
sketch000Profile000 = circle(
sketch000,
center = [0, 0],
radius = 1.1875
)
|> subtract2d(tool = circle(center = [0, 0], radius = 0.9375))
sweepExtrude000 = sweep(
sketch000Profile000,
path = sketch001Profile000
)
sketch004 = startSketchOn(XY)
sketch004Profile000 = startProfile(sketch004, at = [0.937, -1.1255])
|> yLine(length = -0.162)
|> xLine(length = -0.312)
|> yLine(length = 0.162)
|> xLine(length = 0.312)
|> close()
revolveCut000Extrude = revolve(sketch004Profile000, axis = X, angle = 360)
revolveCut000 = subtract(sweepExtrude000, tools = revolveCut000Extrude)