Skip to content

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

1.1 KB
Raw Blame
{
  "sources": [
    "tangency-labs/solidcraft#311"
  ],
  "what": "an inclined cut across a round blank, which used to pinch the cylindrical wall inward (a 4.4 mm chord deficit) in the display and STL mesh",
  "source": "analytic",
  "method": "Blank: cylinder r=75, h=16 (z 0..16). The cut is the triangle-and-strip above the ramp line z(y)=16-k(y-18.5), k=15/56.5, through (18.5,16) and (75,1), extruded 91 mm to each side of YZ (wider than the blank). The ramp stays above z=0 over the blank (z(75)=1), so the removed thickness at (x,y) with y>18.5 is k(y-18.5). Removed volume = k * integral_{18.5}^{75} (y-18.5) 2 sqrt(75^2-y^2) dy = k[ -(2/3)(R^2-y^2)^{3/2} - 18.5 (y sqrt(R^2-y^2) + R^2 asin(y/R)) ] = 38051.363. V = pi 75^2 16 - removed = 244691.975. Area = bottom pi R^2 + top (pi R^2 - S) + wall (2 pi R 16 - 1920.812, the removed band k R [2 R cos(t0) - 18.5 (pi - 2 t0)], t0=asin(18.5/75)) + ramp S sqrt(1+k^2), with S = projected area of the disc beyond y=18.5 = 6089.132. Four faces: bottom, top, wall, ramp.",
  "body_count": 1,
  "volume_mm3": 244691.975,
  "area_mm2": 41172.865,
  "faces": 4
}