SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Wave 502/509: Kernel rig: the pipe on a plate's curvature round meets the plate G2 and the pipe G3, 40307.8856312 (option B's order-2 jets, tangency-labs/solidcraft#10845) (and 1 more)
jyviko7099e8005945
diff --git a/crates/smlib/SMLIB_PREBUILT b/crates/smlib/SMLIB_PREBUILTindex 1811dc299d..e32b5afb3e 100644--- a/crates/smlib/SMLIB_PREBUILT+++ b/crates/smlib/SMLIB_PREBUILT@@ -1,10 +1,10 @@# Rust target, SHA-256 of smlib-<target>.tar.gz in the release prebuilt-<SMLIB_REV> of# tangency-labs/smlib. Written by scripts/fetch-smlib.sh --pin; never edited by hand.-aarch64-apple-darwin 48461900e6d041389bb3736f2772f7bb21f2d202a1e1f4d27d6c6915c298bb8a-aarch64-pc-windows-msvc 2ba752b4bf8a3f18b47cbc6773763d7d9a3a0393be27c3d4e98a6d5ca9cf0b4d-aarch64-unknown-linux-gnu 8c66c2a113a64e574d945772965f7cc0de46ff8bbb3ce450e95bf57abe6058c0-i686-pc-windows-msvc dd771c1dede08a3bdfe012ef509d99a16087872790792b44bb8b26cc1015a671-wasm32-unknown-unknown 7bb1507b9d474d9ee19f2a61d22c9167fdf360672897d9d8dfeb4647a1993fd5-x86_64-apple-darwin 7ad19f0b30c4c0787f0d3459e2263906fa290db2247afab9efd068feb185fa26-x86_64-pc-windows-msvc 0dcc44829efa70e19b739b06a19d3cbbc2101c0cc9fb0cc44f28fb97066ce20d-x86_64-unknown-linux-gnu 8d009ebf182f04c95c6a64f9b0b13b355796b62fef60d81665341915136c5851+aarch64-apple-darwin b1d0e36c05090ab89e96601079b156a656024d0b209a0ac1973443494ed814ba+aarch64-pc-windows-msvc 5c02e2a884acd2de419867392bac497eae7bcd258e90a7de50d8a6c8eaaf7a89+aarch64-unknown-linux-gnu 52a9d8c58747bc86495be8e81bb7b352faf85bc35b87fd4340e8eab7f4a9d988+i686-pc-windows-msvc a071be49f30fea979d5972c35542bbcbef04794cbb9891c1a1a78e12720836bd+wasm32-unknown-unknown 6bd987227bc707cdc4f287c1a70fc01e53437a9657e05901fa3a7904ec920351+x86_64-apple-darwin 8d3fd575337059e345a6b5e7f7e9be94fae7f5a9edc66989f6e1e033eec0ab2e+x86_64-pc-windows-msvc 158fb9fa89cf44bffa44452b2b4829e9a54586d86c0b8c7e5c2d640ac8b45515+x86_64-unknown-linux-gnu 2a9560c23ad693e89a48d1491d2a75ecfe8e0575d07cfff29ec61cb712429299diff --git a/crates/smlib/SMLIB_REV b/crates/smlib/SMLIB_REVindex 33fcdb90f6..57e5be618c 100644--- a/crates/smlib/SMLIB_REV+++ b/crates/smlib/SMLIB_REV@@ -1 +1 @@-5e8c9c19bb2cff6b5ae321ecda577496955fe037+f916a8d628a063333a39b2e303849e584dcc9f26diff --git a/tests/kernel-cases/fillets/KNOWN_FAILING b/tests/kernel-cases/fillets/KNOWN_FAILINGindex bfe6a7acd9..1b14313515 100644--- a/tests/kernel-cases/fillets/KNOWN_FAILING+++ b/tests/kernel-cases/fillets/KNOWN_FAILING@@ -19,7 +19,6 @@ cov-fillet-g2-four-edge-apex-corner refused: the default setback is shorter thancov-fillet-g2-mixed-corner not supported yet: SMLib sets back a corner only where its edges are all convex or all concavecov-fillet-g2-oblique-three-edge-corner the G2 corner patch meets the new order-2 section's rounds only G1 at one face seam (its volume holds); the corner step rebuilds the patchcov-fillet-g2-pocket-corner the G2 corner patch meets the new order-2 section's rounds only G1 at one face seam (its volume holds); the corner step rebuilds the patch-cov-fillet-section-curvature-pipe-on-plate-r2 builds, but a seam grades G3 where exactly G2 is wanted (the Gⁿ section on faces of finite smoothness; tangency-labs/smlib#93)cov-fillet-turn-swept-boss-base-r1 not supported yet: solid.fillet has no `turn`; the corners are mitred (12508.9676, the Mitre case's volume)cov-fillet-turn-swept-pocket-sharp-corner-refused-r1 not supported yet: solid.fillet has no `turn`, so the sharp concave corners are mitred, not refusedcov-junction-boss-tilt-20-root-round SMLib fillet status 1001 on a cylinder tilted 20 degrees into the plate (also before the blend rework)diff --git a/tests/kernel-cases/fillets/cov-fillet-section-curvature-pipe-on-plate-r2/expected.json b/tests/kernel-cases/fillets/cov-fillet-section-curvature-pipe-on-plate-r2/expected.jsonindex af69fed795..53de60e753 100644--- a/tests/kernel-cases/fillets/cov-fillet-section-curvature-pipe-on-plate-r2/expected.json+++ b/tests/kernel-cases/fillets/cov-fillet-section-curvature-pipe-on-plate-r2/expected.json@@ -1,13 +1,35 @@{"sources": [],- "what": "the concave edge where a pipe dips into a plate rounded curvature-continuous size 2: the order-2 section meets the plane with curvature 0 and the pipe with its curvature 1/10",+ "what": "the concave edge where a pipe dips into a plate rounded curvature-continuous size 2: the order-2 section meets the plane G2 (curvature 0) and the pipe G3 (its curvature 1/10 and that curvature's rate, 0)","source": "analytic",- "method": "plate 60x40x10 (z 0..10) joined to a pipe R10 along x (0..60) whose axis is at (y, z) = (20, 16): the pipe dips 4 into the plate and leaves it along y = 20 +- 8, z = 10, the edges ending on the planar faces x = 0 and 60. V0 = 24000 + 60 (100 pi - (100 acos 0.6 - 48)) = 40165.7846. The concave edge y = 28: in a plane x = const, the point at distance d from both faces is (20 + g, 10 + d), g = sqrt(64 + 32 d); its feet are F1 = (20 + g, 10) on the plate and F2 = (20 + 10 g / (10 + d), 26 - 160 / (10 + d)) on the pipe. The order-2 section between the r = 2 ball's contacts: S(t) = f(t) T1(1 - p1(t)) + (1 - f(t)) T2(p2(t)), f = (1-t)^3 / ((1-t)^3 + t^3), p1 = t / (1 - w + w t), p2 = t (1 - w) / (1 - w t), w = -0.8544103493 (the equal-area default: the wedge at the middle station is 70.52878 degrees), T_i(u) = sum_{k<=2} 2^k / k! F_i^(k)(2) (u - 1)^k (g' = 16 / g, g'' = -256 / g^3). It adds the area between it, the plate and the pipe, 1.54598304589003 (Green's theorem): V = 40165.7846 + 60 * 1.545983 = 40258.5436. The pipe's feet are not linear in d: the t^3 term of the standoff does not vanish, and both seams are G2, not G3. [the curvature section at the equal-area thumbweight (the default): on the same rails it takes off what the ball's circle does, so between square planes w = -0.5252123889 and it cuts A = (1 - pi/4) s^2 = 0.214601836603 s^2, first moment about either face M = 0.0474559669443 s^3 (Green's theorem on S); V = 40302.590786]",+ "method": "plate 60x40x10 (z 0..10) joined to a pipe R10 along x (0..60) whose axis is at (y, z) = (20, 16): the pipe dips 4 into the plate and leaves it along y = 20 +- 8, z = 10, the edges ending on the planar faces x = 0 and 60. V0 = 24000 + 60 (100 pi - (100 acos 0.6 - 48)) = 40165.7846135. The concave edge y = 28: in a plane x = const, the point at distance d from both faces is (20 + g, 10 + d), g = sqrt(64 + 32 d); its feet are F1 = (20 + g, 10) on the plate and F2 = (20 + 10 g / (10 + d), 26 - 160 / (10 + d)) on the pipe. The order-2 section between the r = 2 ball's contacts F1(2) = (31.313708, 10) and F2(2) = (29.428090, 12.666667): S(t) = f(t) T1(1 - p1(t)) + (1 - f(t)) T2(p2(t)), f = (1-t)^3 / ((1-t)^3 + t^3), p1 = t / (1 - w + w t), p2 = t (1 - w) / (1 - w t), w = -0.8544103493 (the equal-area thumbweight: the wedge at the middle station is 70.52878 degrees), T_i(u) = c_i0 + c_i1 (u - 1) + c_i2 (u - 1)^2 with c_i0 = F_i(2), c_i1 = 2 F_i'(2) (g' = 16 / g) and c_i2 the part of 2 F_i''(2) along face i's normal (g'' = -256 / g^3): 0 on the plate, N (N . 2 F2'') on the pipe, N = (F2 - (20, 16)) / 10. It adds the area between it, the plate and the pipe, 2.36835029463 (Green's theorem, Gauss-Legendre 64 panels of 40 points in t): V = 40165.7846135 + 60 * 2.36835029463 = 40307.8856312. Contact with the plate is order 3 (G2): the t^3 term of the standoff, (T2(0) - F1(2)) . (0, 1), is not zero. With the pipe it is order 4 (G3): the plate's jets put T1(0) at V(2) - 2 V'(2), whose offset from F2(2) along the pipe's normal is r - 2 V'(2) . N = 0 (the distance from the pipe grows at the rate 1), and on the circle the face curve's second coefficient lies along the normal and its third along the circle (SMLib's capi pipe_on_plate case).","body_count": 1,- "volume_mm3": 40302.59078634818,+ "volume_mm3": 40307.8856312,"continuity": {- "order": "g2",- "exact": true+ "seams": [+ {+ "edges": [+ [+ 30,+ 31.31370849898476,+ 10+ ]+ ],+ "order": "g2",+ "exact": true+ },+ {+ "edges": [+ [+ 30,+ 29.428090415820634,+ 12.666666666666666+ ]+ ],+ "order": "g3",+ "exact": true+ }+ ]},"tolerance": {"rel": 1e-07