chamfer
Bevel one or more edges by setting a distance and angle. Applies standard autoparts chamfers for deburring or bolt-hole lead-ins.
Instructions
Chaflán — bevel one or more edges (distance + angle).
Edge addressing, the selector schema (recommended), failure modes, and
the batch-all-identical-edges-in-ONE-call rule are IDENTICAL to fillet
— see its description. E.g. chamfer every hole rim at the top face (z≈10):
chamfer(selector={"filter": {"geom": "circle", "axis": "z",
"at_mm": 10, "tol_mm": 0.5}}, distance_mm=1.0)
Standard autoparts use: bolt-hole entry chamfers (lead-in for assembly), deburred edges on machined parts, parting-line breaks on cast housings. 45° distance-angle is the autoparts default; distance-distance and vertex chamfers are deferred.
Args: edge_midpoints_mm: Optional. Edge addressing by midpoint (line edges; from list_edges() e["midpoint_mm"]). distance_mm: Chamfer leg length (the distance the chamfer extends along the edge's faces). Must be > 0. Typical autoparts values: 0.3-0.5mm for deburr, 1-2mm for bolt-hole lead-ins. angle_deg: Angle from the reference face. Must be in (0, 90). Default 45° (standard for almost all autoparts chamfers). flip: If True, the angle is measured from the OTHER adjacent face. Useful when the default direction goes the wrong way. edge_indices: Optional. Edge addressing by (body, index) — required for closed-loop circular edges (midpoint_mm is None for those).
Returns the resulting Chaflán feature (name, type="chamfer", dims).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | ||
| selector | No | ||
| angle_deg | No | ||
| distance_mm | No | ||
| edge_circles | No | ||
| edge_indices | No | ||
| edge_midpoints_mm | No |