17-loft's expected values were FreeCAD's (OpenCASCADE's Part.makeLoft), which runs each side of the square to its quarter of the circle at uniform angle (arc length). That correspondence has no exact rational B-spline form, and SolidCraft keeps its surfaces exact: its ruled loft runs each side to one rational quarter of the circle's B-spline by their own parameters, 35080.7251 mm^3, 0.13% less (the oracle failed on volume and the second moments). The owner chose this correspondence. The case is now worked out in tools/oracle-analytic/cases_basic.py: the section area is quadratic in t with the loops' mixed area, so volume and centroid are closed forms of it (the mixed area and the wall area by Gauss-Legendre on the exact rational arcs); its note says why it differs from OpenCASCADE and gives that volume, and its `compare` leaves out the surface check against OpenCASCADE's reference.stl. All its checks pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
"source": "analytic",
|
|
"method": "ruled loft, square 40 at z 0 to circle r 10 at z 40, each side on one rational quarter of the circle (corner (20, -20) at -45 deg): A(t) = (1-t)^2 A_S + t^2 A_C + t(1-t) M, M = 1/2 int (S x C' + C x S') du (Gauss-Legendre on the exact rational arcs), V = h (A_S/3 + A_C/3 + M/6), z_c = h (A_S/12 + A_C/4 + M/12) / (V/h), wall area = int |P_u x P_t| du dt",
|
|
"body_count": 1,
|
|
"volume_mm3": 35080.725116114816,
|
|
"area_mm2": 6493.984396260195,
|
|
"center_of_mass": [
|
|
0.0,
|
|
0.0,
|
|
15.112831028492234
|
|
],
|
|
"bbox": {
|
|
"min": [
|
|
-20.0,
|
|
-20.0,
|
|
0.0
|
|
],
|
|
"max": [
|
|
20.0,
|
|
20.0,
|
|
40.0
|
|
]
|
|
},
|
|
"faces": 6,
|
|
"note": "a difference of definition with the FreeCAD (OpenCASCADE) loft, which runs each side to the quarter at uniform angle (arc length): that correspondence has no exact rational B-spline form, and SolidCraft keeps its surfaces exact; OpenCASCADE's volume is 35125.50 mm^3 (0.13% more). The reference.stl is OpenCASCADE's, so the surface comparison is left out",
|
|
"compare": [
|
|
"body_count",
|
|
"volume_mm3",
|
|
"area_mm2",
|
|
"center_of_mass",
|
|
"bbox",
|
|
"faces"
|
|
]
|
|
}
|