Skip to content

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

1.5 KB
Raw Blame
{
 "sources": [
  "tangency-labs/solidcraft#3914"
 ],
 "what": "Create Sketch on the top face of a block with a modelled thread and rounded corners, then a boss from it",
 "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. Box 20^3, a D5 hole 20 deep (rho=2.5), M6 (P=1) over the whole 20 mm (20 turns, both ends free), the four vertical edges rounded R2 (68.6726), then a sketch on the top face with a 4x4 rectangle at least 4 mm from the hole centre, extruded 5 mm and joined: +80. V = 8000 - 68.6726 - pi 2.5^2 20 - 20 x 3.49832 + 80 = 7548.6619 mm3. Create Sketch on that face was refused ('its history can't tell it apart from other faces'). 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": 7548.6619,
 "tolerance": {
  "rel": 0.01
 },
 "bbox": {
  "min": [
   0,
   0,
   0
  ],
  "max": [
   20,
   20,
   25
  ]
 }
}