Chamfer Detection from Mesh File

Paramesh AI detects chamfers using three strategies: cone surfaces (countersinks around holes), small narrow plane strips at 135-degree dihedral angles (flat bevels), and edge classification from the topology graph. Tested on parts with 10+ chamfers including countersink chamfers around bolt holes.

Types of chamfers detected

  • Countersink chamfers — conical surfaces around holes. Detected as CONE surface type in the segmentation stage.
  • Flat bevels — narrow plane strips meeting adjacent faces at ~135 degrees. Detected via dihedral angle analysis in the topology stage.
  • Edge chamfers — identified by the topology graph's edge classification (CHAMFER type with dihedral angle in the 100-160 degree range).

Chamfer reconstruction

Detected chamfers are applied in the CadQuery construction as edges().chamfer(size). The size is estimated from the recognized feature geometry with progressive fallback (tries decreasing sizes if initial chamfer fails on short edges).