diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/expected.json new file mode 100644 index 000000000..d1cb67164 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/expected.json @@ -0,0 +1,10 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "after the boss's partial base arc is rounded r2, the bar's top edge that runs into the round rounded r2 without its tangent chain", + "source": "invariants", + "method": "bar and boss as 1207-fillet-bar-top-edge-and-boss-arc-together; the base arc rounded r2 first (V0 + 28.9190), running out over the front face where its section is a curve on that face tangent to the bar's top edge; then that edge rounded r2 alone (tangent chain off): it ends where the section curve goes on tangentially, so a clean refusal or a valid body", + "body_count": 1, + "outcome": "solid_or_refused" +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/recipe.json new file mode 100644 index 000000000..8b6f6d8d7 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-no-tangent-chain/recipe.json @@ -0,0 +1,61 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 16, + 12, + 10 + ] + ], + "radius": 2 + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ] + ], + "radius": 2, + "tangent_chain": false + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/expected.json new file mode 100644 index 000000000..e93b9caf4 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "after the boss's partial base arc is rounded r2, the bar's top edge that runs into the round rounded r0.5", + "source": "invariants", + "method": "bar and boss as 1207-fillet-bar-top-edge-and-boss-arc-together; the base arc rounded r2 first (V0 + 28.9190), running out over the front face where its section is a curve on that face tangent to the bar's top edge; then that edge rounded r0.5, the tangent chain on: the edge and the section curve it runs into. How the round runs on along the curve has no closed form: one valid closed body", + "body_count": 1 +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/recipe.json new file mode 100644 index 000000000..4b65a39be --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round-r0-5/recipe.json @@ -0,0 +1,60 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 16, + 12, + 10 + ] + ], + "radius": 2 + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ] + ], + "radius": 0.5 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/expected.json new file mode 100644 index 000000000..357cf03f0 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "after the boss's partial base arc is rounded r2, the bar's top edge that runs into the round rounded r2", + "source": "invariants", + "method": "bar and boss as 1207-fillet-bar-top-edge-and-boss-arc-together; the base arc rounded r2 first (V0 + 28.9190), running out over the front face where its section is a curve on that face tangent to the bar's top edge; then that edge rounded r2, the tangent chain on: the edge and the section curve it runs into. How the round runs on along the curve has no closed form: one valid closed body", + "body_count": 1 +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/recipe.json new file mode 100644 index 000000000..c6e600fb6 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-after-boss-arc-round/recipe.json @@ -0,0 +1,60 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 16, + 12, + 10 + ] + ], + "radius": 2 + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ] + ], + "radius": 2 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/expected.json new file mode 100644 index 000000000..dc70a4a65 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/expected.json @@ -0,0 +1,13 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "the bar's top edge and the partial base arc of a boss standing out over the bar's side, rounded r2 together (corner g2 acts where three or more rounded edges meet: none here, so the rounds are as rolling): they meet at a vertex whose third edge (the boss's line on the side face) is concave", + "source": "analytic", + "method": "bar 100x30x10 (y -15..15) joined with a diameter 40 boss 20 tall at the origin, standing out over both sides (V0 = 49756.1794, as 1207-fillet-concave-arc-at-boss). The bar's front top edge (y=-15, z=10) and the boss's base arc over the bar (its two edges, split at the cylinder's seam: the tangent chain) rounded r2 together meet at (13.229, -15, 10), where the third edge, the boss's line on the front face, is concave and runs down. Away from that corner the body is V0 plus the arc round's spandrel strip ending on y=+-15 (integral over rho of [r - sqrt(r^2-(20+r-rho)^2)] rho 2 asin(15/rho) = 28.9190, Simpson) less the front round's spandrel out to the boss wall (integral over y of [r - sqrt(r^2-(y+15-r)^2)] (100 - sqrt(400-y^2)) = 74.0736); the corner patch lies within the cube of side 2r about the vertex, so V is graded as V0 + add - removed with (2r)^3 as its tolerance (corner g2 acts where three or more rounded edges meet: none here, so the rounds are as rolling)", + "body_count": 1, + "volume_mm3": 49711.02481940043, + "tolerance": { + "rel": 0.0012874407685721878 + } +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/recipe.json new file mode 100644 index 000000000..82b053988 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-curvature-corners/recipe.json @@ -0,0 +1,53 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ], + [ + 16, + 12, + 10 + ] + ], + "radius": 2, + "corner": "g2" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/expected.json new file mode 100644 index 000000000..941d16599 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/expected.json @@ -0,0 +1,13 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "the bar's top edge and the partial base arc of a boss standing out over the bar's side, rounded r1 together: they meet at a vertex whose third edge (the boss's line on the side face) is concave", + "source": "analytic", + "method": "bar 100x30x10 (y -15..15) joined with a diameter 40 boss 20 tall at the origin, standing out over both sides (V0 = 49756.1794, as 1207-fillet-concave-arc-at-boss). The bar's front top edge (y=-15, z=10) and the boss's base arc over the bar (its two edges, split at the cylinder's seam: the tangent chain) rounded r1 together meet at (13.229, -15, 10), where the third edge, the boss's line on the front face, is concave and runs down. Away from that corner the body is V0 plus the arc round's spandrel strip ending on y=+-15 (integral over rho of [r - sqrt(r^2-(20+r-rho)^2)] rho 2 asin(15/rho) = 7.2537, Simpson) less the front round's spandrel out to the boss wall (integral over y of [r - sqrt(r^2-(y+15-r)^2)] (100 - sqrt(400-y^2)) = 18.5684); the corner patch lies within the cube of side 2r about the vertex, so V is graded as V0 + add - removed with (2r)^3 as its tolerance", + "body_count": 1, + "volume_mm3": 49744.864673399745, + "tolerance": { + "rel": 0.00016082062043035108 + } +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/recipe.json new file mode 100644 index 000000000..51ea837f5 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-r1/recipe.json @@ -0,0 +1,52 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ], + [ + 16, + 12, + 10 + ] + ], + "radius": 1 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/expected.json new file mode 100644 index 000000000..43785868b --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/expected.json @@ -0,0 +1,13 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "the bar's top edge and the partial base arc of a boss standing out over the bar's side, rounded r2 together (the radius fits: fit reduce keeps it): they meet at a vertex whose third edge (the boss's line on the side face) is concave", + "source": "analytic", + "method": "bar 100x30x10 (y -15..15) joined with a diameter 40 boss 20 tall at the origin, standing out over both sides (V0 = 49756.1794, as 1207-fillet-concave-arc-at-boss). The bar's front top edge (y=-15, z=10) and the boss's base arc over the bar (its two edges, split at the cylinder's seam: the tangent chain) rounded r2 together meet at (13.229, -15, 10), where the third edge, the boss's line on the front face, is concave and runs down. Away from that corner the body is V0 plus the arc round's spandrel strip ending on y=+-15 (integral over rho of [r - sqrt(r^2-(20+r-rho)^2)] rho 2 asin(15/rho) = 28.9190, Simpson) less the front round's spandrel out to the boss wall (integral over y of [r - sqrt(r^2-(y+15-r)^2)] (100 - sqrt(400-y^2)) = 74.0736); the corner patch lies within the cube of side 2r about the vertex, so V is graded as V0 + add - removed with (2r)^3 as its tolerance (the radius fits: fit reduce keeps it)", + "body_count": 1, + "volume_mm3": 49711.02481940043, + "tolerance": { + "rel": 0.0012874407685721878 + } +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/recipe.json new file mode 100644 index 000000000..a4a89c7c6 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-reduce-fit/recipe.json @@ -0,0 +1,53 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ], + [ + 16, + 12, + 10 + ] + ], + "radius": 2, + "fit": "reduce" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/expected.json new file mode 100644 index 000000000..ffa534aec --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/expected.json @@ -0,0 +1,13 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "the bar's top edge and the partial base arc of a boss standing out over the bar's side, rounded r2 together (the radius fits: fit taper keeps it): they meet at a vertex whose third edge (the boss's line on the side face) is concave", + "source": "analytic", + "method": "bar 100x30x10 (y -15..15) joined with a diameter 40 boss 20 tall at the origin, standing out over both sides (V0 = 49756.1794, as 1207-fillet-concave-arc-at-boss). The bar's front top edge (y=-15, z=10) and the boss's base arc over the bar (its two edges, split at the cylinder's seam: the tangent chain) rounded r2 together meet at (13.229, -15, 10), where the third edge, the boss's line on the front face, is concave and runs down. Away from that corner the body is V0 plus the arc round's spandrel strip ending on y=+-15 (integral over rho of [r - sqrt(r^2-(20+r-rho)^2)] rho 2 asin(15/rho) = 28.9190, Simpson) less the front round's spandrel out to the boss wall (integral over y of [r - sqrt(r^2-(y+15-r)^2)] (100 - sqrt(400-y^2)) = 74.0736); the corner patch lies within the cube of side 2r about the vertex, so V is graded as V0 + add - removed with (2r)^3 as its tolerance (the radius fits: fit taper keeps it)", + "body_count": 1, + "volume_mm3": 49711.02481940043, + "tolerance": { + "rel": 0.0012874407685721878 + } +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/recipe.json new file mode 100644 index 000000000..2f47fc19a --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together-taper-fit/recipe.json @@ -0,0 +1,53 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ], + [ + 16, + 12, + 10 + ] + ], + "radius": 2, + "fit": "taper" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/expected.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/expected.json new file mode 100644 index 000000000..058d0079d --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/expected.json @@ -0,0 +1,13 @@ +{ + "sources": [ + "tangency-labs/solidcraft#1207" + ], + "what": "the bar's top edge and the partial base arc of a boss standing out over the bar's side, rounded r2 together: they meet at a vertex whose third edge (the boss's line on the side face) is concave", + "source": "analytic", + "method": "bar 100x30x10 (y -15..15) joined with a diameter 40 boss 20 tall at the origin, standing out over both sides (V0 = 49756.1794, as 1207-fillet-concave-arc-at-boss). The bar's front top edge (y=-15, z=10) and the boss's base arc over the bar (its two edges, split at the cylinder's seam: the tangent chain) rounded r2 together meet at (13.229, -15, 10), where the third edge, the boss's line on the front face, is concave and runs down. Away from that corner the body is V0 plus the arc round's spandrel strip ending on y=+-15 (integral over rho of [r - sqrt(r^2-(20+r-rho)^2)] rho 2 asin(15/rho) = 28.9190, Simpson) less the front round's spandrel out to the boss wall (integral over y of [r - sqrt(r^2-(y+15-r)^2)] (100 - sqrt(400-y^2)) = 74.0736); the corner patch lies within the cube of side 2r about the vertex, so V is graded as V0 + add - removed with (2r)^3 as its tolerance", + "body_count": 1, + "volume_mm3": 49711.02481940043, + "tolerance": { + "rel": 0.0012874407685721878 + } +} diff --git a/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/recipe.json b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/recipe.json new file mode 100644 index 000000000..b817f5216 --- /dev/null +++ b/tests/kernel-cases/fillets/1207-fillet-bar-top-edge-and-boss-arc-together/recipe.json @@ -0,0 +1,52 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 100, + "width": 30, + "height": 10, + "corner": [ + 0, + -15, + 0 + ], + "body_name": "Arm" + } + }, + { + "command": "solid.cylinder", + "params": { + "diameter": 40, + "height": 20, + "base": [ + 0, + 0, + 0 + ], + "operation": "join", + "targets": [ + "Arm" + ] + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + -15, + 10 + ], + [ + 16, + 12, + 10 + ] + ], + "radius": 2 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/expected.json b/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/expected.json new file mode 100644 index 000000000..495896d6c --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/expected.json @@ -0,0 +1,10 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "the long top edge of a 5x5 bar rounded r10, wider than both faces it rounds", + "source": "analytic", + "method": "a convex round past its faces' far edges is built on the faces continued and its removal subtracted (smlib_fillet): the section keeps the bar's 5x5 square within the round's circle, centre (y,z) = (10,-5), radius 10: area 7.87866 (grid quadrature 4000^2); V = 80 area", + "body_count": 1, + "volume_mm3": 630.293125 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/recipe.json b/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/recipe.json new file mode 100644 index 000000000..45115ffa0 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-bar-edge-wider-than-both-faces/recipe.json @@ -0,0 +1,26 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 5, + "height": 5, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 40, + 0, + 5 + ] + ], + "radius": 10 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/expected.json b/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/expected.json new file mode 100644 index 000000000..8ef65536a --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "the top edge of a 10x10 box end rounded r5, half the wall", + "source": "analytic", + "method": "removed (1-pi/4) r^2 W", + "body_count": 1, + "volume_mm3": 7946.349540849362, + "faces": 7 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/recipe.json b/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/recipe.json new file mode 100644 index 000000000..79bfd27a1 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-end-top-edge-half-the-wall/recipe.json @@ -0,0 +1,26 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 10, + "height": 10, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 5, + 10 + ] + ], + "radius": 5 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/expected.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/expected.json new file mode 100644 index 000000000..2d899e981 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "both vertical edges of a 20 mm wide box end rounded r10, half the width: the rounds meet tangent and use up the end face (a full round), fit reduce", + "source": "analytic", + "method": "box 80x20x20, the end x=80 rounded r10 on both vertical edges: removed 2 (1-pi/4) r^2 H; the end face is used up, the rounds meet along x=70..80's middle line tangentially: 4 planes + 2 rounds", + "body_count": 1, + "volume_mm3": 31141.592653589792, + "faces": 6 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/recipe.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/recipe.json new file mode 100644 index 000000000..d35ab5b06 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-reduce-fit/recipe.json @@ -0,0 +1,32 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 20, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 0, + 10 + ], + [ + 80, + 20, + 10 + ] + ], + "radius": 10, + "fit": "reduce" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/expected.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/expected.json new file mode 100644 index 000000000..200fb8a0e --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "both vertical edges of a 20 mm wide box end rounded r10, half the width: the rounds meet tangent and use up the end face (a full round), fit taper", + "source": "analytic", + "method": "box 80x20x20, the end x=80 rounded r10 on both vertical edges: removed 2 (1-pi/4) r^2 H; the end face is used up, the rounds meet along x=70..80's middle line tangentially: 4 planes + 2 rounds", + "body_count": 1, + "volume_mm3": 31141.592653589792, + "faces": 6 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/recipe.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/recipe.json new file mode 100644 index 000000000..eb22bca1c --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals-taper-fit/recipe.json @@ -0,0 +1,32 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 20, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 0, + 10 + ], + [ + 80, + 20, + 10 + ] + ], + "radius": 10, + "fit": "taper" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/expected.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/expected.json new file mode 100644 index 000000000..8ca3ae2f9 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "both vertical edges of a 20 mm wide box end rounded r10, half the width: the rounds meet tangent and use up the end face (a full round)", + "source": "analytic", + "method": "box 80x20x20, the end x=80 rounded r10 on both vertical edges: removed 2 (1-pi/4) r^2 H; the end face is used up, the rounds meet along x=70..80's middle line tangentially: 4 planes + 2 rounds", + "body_count": 1, + "volume_mm3": 31141.592653589792, + "faces": 6 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/recipe.json b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/recipe.json new file mode 100644 index 000000000..88be459a8 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-full-round-two-end-verticals/recipe.json @@ -0,0 +1,31 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 20, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 0, + 10 + ], + [ + 80, + 20, + 10 + ] + ], + "radius": 10 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/expected.json b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/expected.json new file mode 100644 index 000000000..94afcd59e --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "both vertical edges of a 15 mm wide box end rounded r10 with fit reduce: reduced to the full round, 7.5", + "source": "analytic", + "method": "reduced to 7.5 (half the width, the largest that fits): removed 2 (1-pi/4) 7.5^2 20", + "body_count": 1, + "volume_mm3": 23517.14586764426, + "faces": 6 +} diff --git a/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/recipe.json b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/recipe.json new file mode 100644 index 000000000..6a7e70360 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round-reduce-fit/recipe.json @@ -0,0 +1,32 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 15, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 0, + 10 + ], + [ + 80, + 15, + 10 + ] + ], + "radius": 10, + "fit": "reduce" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/expected.json b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/expected.json new file mode 100644 index 000000000..c2e80c5d7 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#4782" + ], + "what": "both vertical edges of a 15 mm wide box end rounded r10, past the full round (7.5): refused", + "source": "invariants", + "method": "each round's rail on the end face lies 10 from its edge, past the other's (15 - 10 = 5): the rounds would cross on the face; the largest that fits is the full round, 7.5", + "outcome": "refused" +} diff --git a/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/recipe.json b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/recipe.json new file mode 100644 index 000000000..2ff467de4 --- /dev/null +++ b/tests/kernel-cases/fillets/4782-fillet-two-end-verticals-past-a-full-round/recipe.json @@ -0,0 +1,31 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 80, + "width": 15, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 80, + 0, + 10 + ], + [ + 80, + 15, + 10 + ] + ], + "radius": 10 + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/expected.json new file mode 100644 index 000000000..042f7db9c --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, curvature (g2) corner, fit reduce (the radius fits)", + "source": "invariants", + "method": "the radius fits, so fit reduce would keep r2 and the corner is 07-fillets/015's at r2: one valid body, 10 faces", + "missing": "solid.fillet builds `corner: g2` with `fit: exact` only", + "body_count": 1, + "faces": 10 +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/recipe.json new file mode 100644 index 000000000..90b1c47ce --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-reduce-fit/recipe.json @@ -0,0 +1,38 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "g2", + "fit": "reduce" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/expected.json new file mode 100644 index 000000000..b800f1ded --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/expected.json @@ -0,0 +1,11 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, curvature (g2) corner, fit taper (the radius fits)", + "source": "invariants", + "method": "the radius fits, so fit taper would keep r2 and the corner is 07-fillets/015's at r2: one valid body, 10 faces", + "missing": "solid.fillet builds `corner: g2` with `fit: exact` only", + "body_count": 1, + "faces": 10 +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/recipe.json new file mode 100644 index 000000000..c56a4e8ed --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-curvature-with-taper-fit/recipe.json @@ -0,0 +1,38 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "g2", + "fit": "taper" + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/expected.json new file mode 100644 index 000000000..7755f2b6b --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/expected.json @@ -0,0 +1,22 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r1 rounds at a box corner with the curvature (g2) corner at its default setback 1.5 r", + "source": "invariants", + "method": "as ladder 07-fillets/015 at r1: the corner set back 1.5 and filled with one patch; no closed-form volume: one valid body, 6 faces + 3 rounds + the patch, within the box", + "body_count": 1, + "faces": 10, + "bbox": { + "min": [ + 0, + 0, + 0 + ], + "max": [ + 60, + 40, + 20 + ] + } +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/recipe.json new file mode 100644 index 000000000..2e410d833 --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-r1-curvature-default-setback/recipe.json @@ -0,0 +1,38 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 1, + "corner": "g2", + "tangent_chain": false + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/expected.json new file mode 100644 index 000000000..eac02c13a --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, curvature (g2) corner, set back 1.5: not past where the rounds meet (r): refused", + "source": "invariants", + "method": "a setback must reach past where the corner's rounds meet without one, past r = 2 on a corner of faces square to each other (smlib_blend_setback, solid.fillet `setbacks`); 1.5 is not, so the right answer is a clean refusal", + "outcome": "refused" +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/recipe.json new file mode 100644 index 000000000..abf49150e --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-curvature/recipe.json @@ -0,0 +1,47 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "g2", + "setbacks": [ + { + "vertex": [ + 60, + 40, + 20 + ], + "distance": 1.5 + } + ] + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/expected.json new file mode 100644 index 000000000..766c23180 --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, rolling-ball corner, set back 1.5: not past where the rounds meet (r): refused", + "source": "invariants", + "method": "a setback must reach past where the corner's rounds meet without one, past r = 2 on a corner of faces square to each other (smlib_blend_setback, solid.fillet `setbacks`); 1.5 is not, so the right answer is a clean refusal", + "outcome": "refused" +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/recipe.json new file mode 100644 index 000000000..f3ea81e67 --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-1-5-not-past-r2-rolling/recipe.json @@ -0,0 +1,47 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "rolling", + "setbacks": [ + { + "vertex": [ + 60, + 40, + 20 + ], + "distance": 1.5 + } + ] + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/expected.json new file mode 100644 index 000000000..d66518f42 --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, curvature (g2) corner, set back 2: not past where the rounds meet (r): refused", + "source": "invariants", + "method": "a setback must reach past where the corner's rounds meet without one, past r = 2 on a corner of faces square to each other (smlib_blend_setback, solid.fillet `setbacks`); 2 is not, so the right answer is a clean refusal", + "outcome": "refused" +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/recipe.json new file mode 100644 index 000000000..f3f0a811a --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-curvature/recipe.json @@ -0,0 +1,47 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "g2", + "setbacks": [ + { + "vertex": [ + 60, + 40, + 20 + ], + "distance": 2 + } + ] + } + } + ] +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/expected.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/expected.json new file mode 100644 index 000000000..a75996f2e --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/expected.json @@ -0,0 +1,9 @@ +{ + "sources": [ + "tangency-labs/solidcraft#9" + ], + "what": "three r2 rounds at a box corner, rolling-ball corner, set back 2: not past where the rounds meet (r): refused", + "source": "invariants", + "method": "a setback must reach past where the corner's rounds meet without one, past r = 2 on a corner of faces square to each other (smlib_blend_setback, solid.fillet `setbacks`); 2 is not, so the right answer is a clean refusal", + "outcome": "refused" +} diff --git a/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/recipe.json b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/recipe.json new file mode 100644 index 000000000..3af126541 --- /dev/null +++ b/tests/kernel-cases/fillets/9-fillet-corner-setback-2-not-past-r2-rolling/recipe.json @@ -0,0 +1,47 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 60, + "width": 40, + "height": 20, + "body_name": "Part" + } + }, + { + "command": "solid.fillet", + "params": { + "edges": [ + [ + 60, + 20, + 20 + ], + [ + 30, + 40, + 20 + ], + [ + 60, + 40, + 10 + ] + ], + "radius": 2, + "corner": "rolling", + "setbacks": [ + { + "vertex": [ + 60, + 40, + 20 + ], + "distance": 2 + } + ] + } + } + ] +}