SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
{
"sources": [
"tangency-labs/solidcraft#2406"
],
"what": "an M8 modelled thread in a 6.8 mm pilot hole (the case where the thread 'was not visible')",
"source": "analytic",
"method": "ISO 68-1 basic profile: H = P sqrt3/2, basic depth 5H/8. External groove (the space between teeth): a trapezoid P/4 wide at the root radius d/2 - 5H/8, widening by 2 tan30 per unit of radius to 7P/8 at d/2. Internal groove: P/8 wide at the major radius d/2, widening to 3P/4 at the minor radius, cut only where there is material (r >= hole radius). Pappus: volume per turn = 2 pi A rc (A the trapezoid area, rc its centroid radius from the axis); a helical sweep of L/P turns removes exactly (L/P) x that, where each end of the thread is a free end or lies inside material. Block 20x20x10 with a 6.8 mm through hole (rho=3.4, a 0.6 mm groove depth at M8x1.25), M8 over the full 10 mm (8 turns, both ends free): V = 4000 - pi 3.4^2 10 - 8 x V_turn(clipped at r=3.4) = 3636.8319 - 8 x 6.88085 = 3581.7851 mm3. COM on the axis at z=5. Tolerance 1%: a modelled thread is a faceted helical solid (radial chord error up to 1% of the pitch on every wall, i.e. a volume deficit of about 4/3 x sag/R).",
"outcome": "solid",
"body_count": 1,
"volume_mm3": 3581.7851,
"center_of_mass": [
0,
0,
5.0
],
"tolerance": {
"rel": 0.01
},
"bbox": {
"min": [
-10,
-10,
0
],
"max": [
10,
10,
10
]
}
}