Fillet & Chamfer variants
Beyond a constant radius:
| Option | Effect |
|---|---|
Fillet(..., radius_end=r2) | variable fillet: radius at the start of each edge, r2 at its end |
Fillet(..., radius_points=[FilletRadiusPoint(t, r)]) | variable fillet through control points: radius r at position t along each edge (see below) |
Chamfer(..., distance2=d2) | two-distance chamfer: radius on one face, d2 on the other |
Chamfer(..., angle_deg=a) | distance-angle chamfer: radius on the first face, at angle a |
Use an EdgeFinder to pick the edges, exactly as for plain fillets.
Tangent chains
A fillet or chamfer on one edge runs on along every edge tangent to it. Picking one straight edge of a rounded-rectangle outline bevels the whole outline, straights and arcs, in one smooth band. This holds for plain, two-distance and distance-angle chamfers, and for fillets. To stop at a corner, the edges must meet at an angle.
Vertex chamfer (corner setback)
self.chamfer_vertices(d) cuts corners off the part’s body built so far.
Each corner, a convex vertex where exactly three straight edges meet, is cut by
the plane through the points d along its three edges. On a right-angled
corner this removes d³/6.
self.chamfer_vertices(4) # every such corner
self.chamfer_vertices(4, at=[(15, -15, 20)]) # only these corners
self.add_operation(VertexChamfer(body, 8, vertices=[Point3D(15, -15, 20)])) # on one featureIn the default mode, corners that are concave, have curved edges, or have more
or fewer than three edges are skipped. A corner you pick with at / vertices
that can’t be bevelled is a processing error, and so is a distance not shorter
than the corner’s edges.
The green block has all eight corners set back 4 mm. The blue one at the front has one corner set back 8 mm. The two parts on the left and right show parting-line draft.
Variable fillet through control points
radius_points adds radius control points between the two ends of each edge.
A position runs from 0 (the edge’s start, where the radius is radius) to 1
(its end, where it is radius_end, or radius if you leave radius_end out);
control points must lie strictly between them.
self.fillet_edges(1, edges=back_edge, radius_points=[(0.5, 6)]) # 1 → 6 → 1 mm
self.add_operation(
Fillet(body, 1, edge_finder=front_edge, radius_end=2,
radius_points=[FilletRadiusPoint(0.25, 4)]) # 1 → 4 → 2 mm
)- The radius follows a smooth curve through the control points that never goes above or below its neighbouring control points (a monotone cubic), so the largest radius is the largest one you give.
- Which end of an edge is “0” is the edge’s own direction. On a symmetric law (same radius at both ends) this does not matter.
- On a chain of tangent edges (a rounded-rectangle outline, say) the fillet runs along the whole chain and every edge of the chain gets the same law.
- A radius too large for the neighbouring faces fails with a processing error that lists the radii.
Not supported yet: conic (rho) and curvature-continuous fillets, and a face blend between two face sets. The OpenCascade fillet builder only makes circular-section fillets on edges.