Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

1.6 KB
Raw Blame
{
 "what": "the peg's front top edge alone given a curvature-continuous round (equivalent radius 2) running into the cylinder: its section leaves the front face with zero curvature, so its end on the cylinder's wall is a semicubical cusp (x - 40 ~ (8 - z)^1.5) where the front face runs tangent into the cylinder; 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 front face y = 0 runs tangent into the cylinder along x = 40, V0 = 6400 + 960 pi; the curvature section of setback 2: the order-2 section at the equal-area thumbweight (SMLIB_BLEND_CURVATURE) from (2, 0) on the top to (0, 2) on the front face (y from the front face, depth below the top): y = 2 (1 - f) t, depth 2 f (1 - t), f = (1-t)^3 / ((1-t)^3 + t^3), area 0.616770621537; the round removes it along x up to the cylinder's wall, x = 40 - sqrt(64 - (8 - y)^2): removed = integral over the section of that length = 23.3237146876 (Green's theorem on the section, adaptive quadrature); every seam of the round with its faces G2 [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 = 9383.627244]",
 "body_count": 1,
 "volume_mm3": 9383.627243733003,
 "continuity": {
  "order": "g2"
 }
}