Skip to content
Development version. Forge is under active development and testing. APIs, behaviour, coverage and verification results may be incomplete or change without notice; published PASS results are not a support guarantee or production-readiness claim.

Shape.chamfer

Chamfer selected solid edges by one equal distance or two native face distances.

Related guide

Signature

Shape.chamfer(self, distance, *, distance2=None, flip=False, edges=<Edges.VERTICAL: 'vertical'>)

Use when

Bevel one or more edges of a supported feature-based body. Supply distance2 for an asymmetric native chamfer; chamfer and fillet use the same edge-selection forms.

Limits

Edges.from_faces() resolves native SolidCraft face-boundary topology. Existing Edges.VERTICAL and cardinal Box selectors require a supported rectangular body; named profile/vertex selectors require matching Polygon2D ids. flip=True requires distance2. Omitting distance2 preserves the existing equal-distance command contract.

Parameters

  • distance — Primary chamfer distance in mm.
  • distance2 — Optional secondary distance along the adjacent face. Omit for an equal-distance chamfer.
  • flip — Swap the native primary/secondary adjacent-face ordering. Defaults to False and requires distance2 when True.
  • edges — Edge selection. Prefer Edges.from_faces(…) for named face perimeters; Edges.VERTICAL, supported two-direction Box selectors, Edges.from_profile(…), Edges.from_vertices(…) and non-empty XYZ edge-pick sequences remain supported. Defaults to Edges.VERTICAL.

Example

body = Box(80, 50, 15)
bevelled = body.chamfer(0.18, distance2=0.65, edges=Edges.VERTICAL)