SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
{
"sources": [],
"what": "20 mm flanges at 72 deg on all four edges, made together and closed at the corners, leaning out: the panel ends run on along a slant",
"source": "analytic",
"method": "T = 2, R = 1, K = 0.5, the corner gap g = 0.5. A bend zone is BA = theta (R + K T) wide in the flat; folded it is an annular sector holding theta T (R + T/2) a mm of bend, T BA with K = 0.5, and every panel moves rigidly, so V = T x the flat area. An edge flange's outer virtual sharp is on the picked edge: the base is cut back s0 = (R + T) tan(theta/2), the bend starts there, and its panel is H - s0 long (H from the sharp along the outer face). Closing a corner (sheet.rs close_corner): every point of a panel's end keeps g/2 from the plane halving the two flanges' inner faces. For the flange on y = 0, its bend along x from the corner (s0, s0), a point s up its panel (rigid, turned theta about the bend axis T + R up) on the face z of the sheet keeps that distance from x = s0 - R sin(theta) - s cos(theta) + g/sqrt2 + (T - z) sin(theta) on; the inner face z = T needs least, so the end is the line x = s0 - e - s cos(theta), e = R sin(theta) - g/sqrt2: the panel runs on e past its bend's end at its foot and a further cos(theta) per mm up it (outward below 90 deg, cut back above). Each panel is the trapezoid leg x (L + 2e + leg cos(theta)), its bend BA x L, L the base's edge less 2 s0 (the bend ends square at the corner). At 72 deg: s0 = 3 tan36 = 2.179628, BA = 2.513274, leg 17.820372, e = 0.597503, the slant cos(theta) = 0.309017 a mm up. V = 2 x the flat area = 23902.891082. Bbox: the walls lean out: the outer face's far edge is H cos(theta) = 6.180340 outside each edge, and the inner face's far edge is highest, H sin(theta) + T cos(theta)",
"body_count": 1,
"volume_mm3": 23902.891082184,
"bbox": {
"min": [
-6.180339887498949,
-6.180339887498949,
0
],
"max": [
106.18033988749895,
66.18033988749895,
19.639164314652966
]
}
}