Wave 435/509: Fillets: a curvature-continuous fillet's corners are G2 patches

1 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- ccc690c53 jyviko: Fillets: a curvature-continuous fillet's corners are G2 patches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-30 06:38:21 -04:00
parent 4a0519e464
commit e58e85e3d6
13 changed files with 661 additions and 16 deletions
+1
View File
@@ -51,4 +51,5 @@ every-pocket-rim-edges-r2 a corner patch where two rim rounds meet at each conca
every-pocket-rim-edges-r5-as-deep-as-pocket a corner patch where two rim rounds meet at each concave pocket corner (15 faces, not 11) instead of the mitre the rounds make running into each other
report-fillet-concave-arc-bar-top-into-cylinder-solver-residues SMLib status 1001: SmFilletNx1Corner cannot make the topology at the arc's end (fillet error 3, corner type 8)
report-fillet-corner-after-round-running-into-cylinder-solver-residues SMLib's check refuses the round: its corner's surface of revolution is close to singular at its boundary (SmSurface test 5)
report-fillet-curvature-three-edges-at-bar-corner SMLib's check refuses the open setback sheet of curvature rounds: a 2D B-spline curve cusp (SmBSplineCurve test 13)
report-fillet-edge-tangent-at-one-end-into-cylinder SMLib's check refuses the round that fades out at the edge's tangent end: internal poles, coincident control points, cusps
@@ -0,0 +1,7 @@
{
"what": "report-fillet-curvature-three-edges-at-bar-corner-solver-residues less its setback cube: the three curvature rounds outside it, exactly; reported from the app (2026-10-30, test-peg part)",
"source": "analytic",
"method": "the same bar with the sketch solver's residues of the reported design (~1e-10 mm: the front side's ends differ by 3.0e-10 in y, the arc's centre 5.7e-11 off the disc's), corner (0.489294, 0.057925), length L = 41.160417754, V0 = L * 16.0000000000762 * 10 + 960 pi; the curvature section of setback 2: the quintic Bezier from (2, 0) on the top to (0, 2) on the side (y from the front face, depth below the top), control points at thirds along each face, area A2 = 0.5978835979 (= 3.73677 * 4 / 25, fillets/2708 at s = 5); the body less the setback cube: a box [-1, 3] x [-1, 3] x [7, 11] about the corner (the patch starts 3 along each edge, so outside it each round is its whole section) cut away: V0 - 27 - removed outside the cube: the front round's section from 3 past the left face to the wall, the vertical and left rounds A2 over 7 and 13: removed 33.4788270394",
"body_count": 1,
"volume_mm3": 9541.1169610928
}
@@ -0,0 +1,198 @@
{
"commands": [
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Peg"
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0.4892940775280783,
0.05792545052986289
],
[
41.64971183161969,
0.05792545083296555
]
]
}
},
{
"command": "sketch.arc.center_point",
"params": {
"center": [
41.64971183108453,
8.057925450890195
],
"start": [
41.64971183161969,
0.05792545083296555
],
"end": [
41.649711830726524,
16.05792545083297
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
41.649711830726524,
16.05792545083297
],
[
0.4892940775280783,
16.057925450606035
]
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0.4892940775280783,
16.057925450606035
],
[
0.4892940775280783,
0.05792545052986289
]
]
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Peg",
"distance": 10,
"body_name": "Peg"
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
0,
0,
10
],
"x_dir": [
1,
0,
0
],
"y_dir": [
0,
1,
0
]
},
"name": "Top"
}
},
{
"command": "sketch.project",
"params": {
"refs": [
{
"face": [
2.4892940775280783,
8.057925450890195,
10
]
}
]
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
41.64971183108453,
8.057925450832967
],
"radius": 8.000000000006473
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Top",
"distance": 10,
"operation": "join",
"targets": [
"Peg"
],
"profiles": [
{
"point": [
41.64971183108453,
8.057925450832967
]
}
],
"exact_regions": true
}
},
{
"command": "solid.fillet",
"params": {
"edges": [
[
0.4892940775280783,
0.0579,
4
],
[
21.53,
0.0579,
10
],
[
0.4892940775280783,
8.058,
10
]
],
"radius": 2,
"type": "curvature",
"tangent_chain": false
}
},
{
"command": "solid.box",
"params": {
"corner": [
-0.5107059224719217,
-0.9420745494701371,
7
],
"length": 4,
"width": 4,
"height": 4,
"operation": "cut",
"targets": [
"Peg"
]
}
}
]
}
@@ -0,0 +1,13 @@
{
"what": "as report-fillet-curvature-three-edges-at-bar-corner, with the sketch solver's residues of the reported design; reported from the app (2026-10-30, test-peg part)",
"source": "analytic",
"method": "the same bar with the sketch solver's residues of the reported design (~1e-10 mm: the front side's ends differ by 3.0e-10 in y, the arc's centre 5.7e-11 off the disc's), corner (0.489294, 0.057925), length L = 41.160417754, V0 = L * 16.0000000000762 * 10 + 960 pi; the curvature section of setback 2: the quintic Bezier from (2, 0) on the top to (0, 2) on the side (y from the front face, depth below the top), control points at thirds along each face, area A2 = 0.5978835979 (= 3.73677 * 4 / 25, fillets/2708 at s = 5); removed 38.8597794204 if each round ran whole to the vertex (the front one L long); the patch within the setback cube, so V is graded with 3^3 as its tolerance; every seam of the rounds and the patch G2",
"body_count": 1,
"volume_mm3": 9562.736008711847,
"tolerance": {
"rel": 0.0028234597269445115
},
"continuity": {
"order": "g2"
}
}
@@ -0,0 +1,181 @@
{
"commands": [
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Peg"
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0.4892940775280783,
0.05792545052986289
],
[
41.64971183161969,
0.05792545083296555
]
]
}
},
{
"command": "sketch.arc.center_point",
"params": {
"center": [
41.64971183108453,
8.057925450890195
],
"start": [
41.64971183161969,
0.05792545083296555
],
"end": [
41.649711830726524,
16.05792545083297
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
41.649711830726524,
16.05792545083297
],
[
0.4892940775280783,
16.057925450606035
]
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0.4892940775280783,
16.057925450606035
],
[
0.4892940775280783,
0.05792545052986289
]
]
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Peg",
"distance": 10,
"body_name": "Peg"
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
0,
0,
10
],
"x_dir": [
1,
0,
0
],
"y_dir": [
0,
1,
0
]
},
"name": "Top"
}
},
{
"command": "sketch.project",
"params": {
"refs": [
{
"face": [
2.4892940775280783,
8.057925450890195,
10
]
}
]
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
41.64971183108453,
8.057925450832967
],
"radius": 8.000000000006473
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Top",
"distance": 10,
"operation": "join",
"targets": [
"Peg"
],
"profiles": [
{
"point": [
41.64971183108453,
8.057925450832967
]
}
],
"exact_regions": true
}
},
{
"command": "solid.fillet",
"params": {
"edges": [
[
0.4892940775280783,
0.0579,
4
],
[
21.53,
0.0579,
10
],
[
0.4892940775280783,
8.058,
10
]
],
"radius": 2,
"type": "curvature",
"tangent_chain": false
}
}
]
}
@@ -0,0 +1,13 @@
{
"what": "a curvature-continuous fillet (equivalent radius 2) of the three edges at a top corner of a bar whose far end runs tangent into a cylinder: it built with SMLib's own corner patch, tangent to the rounds only (a 35.8 / mm curvature jump), seen as a dome on the corner; the corner must be a G2 patch; reported from the app (2026-10-30, test-peg part)",
"source": "analytic",
"method": "a bar 40 x 16 x 10 whose far end is a half disc R8 about (40, 8), a disc R8 about the same centre sketched on its top (the top's outline projected) and extruded 10 up, joined: the bar's sides run tangent into the cylinder, V0 = 6400 + 960 pi; the curvature section of setback 2: the quintic Bezier from (2, 0) on the top to (0, 2) on the side (y from the front face, depth below the top), control points at thirds along each face, area A2 = 0.5978835979 (= 3.73677 * 4 / 25, fillets/2708 at s = 5); the front round removes the section along x up to the wall, the vertical and left rounds A2 along 10 and 16: removed 38.1659846785 if each ran whole to the vertex; the corner patch (set back 1.5 r = 3) lies within the setback cube, so V is graded as V0 - that with 3^3 as its tolerance; every seam of the rounds and the patch G2",
"body_count": 1,
"volume_mm3": 9377.76296276769,
"tolerance": {
"rel": 0.002879151467913772
},
"continuity": {
"order": "g2"
}
}
@@ -0,0 +1,181 @@
{
"commands": [
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Peg"
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0,
0
],
[
40,
0
]
]
}
},
{
"command": "sketch.arc.center_point",
"params": {
"center": [
40,
8
],
"start": [
40,
0
],
"end": [
40,
16
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
40,
16
],
[
0,
16
]
]
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
0,
16
],
[
0,
0
]
]
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Peg",
"distance": 10,
"body_name": "Peg"
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
0,
0,
10
],
"x_dir": [
1,
0,
0
],
"y_dir": [
0,
1,
0
]
},
"name": "Top"
}
},
{
"command": "sketch.project",
"params": {
"refs": [
{
"face": [
2,
8,
10
]
}
]
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
40,
8
],
"radius": 8
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"sketch": "Top",
"distance": 10,
"operation": "join",
"targets": [
"Peg"
],
"profiles": [
{
"point": [
40,
8
]
}
],
"exact_regions": true
}
},
{
"command": "solid.fillet",
"params": {
"edges": [
[
0,
0,
4
],
[
20,
0,
10
],
[
0,
8,
10
]
],
"radius": 2,
"type": "curvature",
"tangent_chain": false
}
}
]
}