pub fn chamfer_edge(
model: &mut Model,
solid: &Shape,
edge: &Shape,
distance: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Bevel a straight edge of a solid, cutting distance back along each of
its two faces.
The edge must be straight, convex, and shared by exactly two planar faces; the distances are equal (the symmetric chamfer). The result is the boolean difference with a wedge whose legs run along the two faces, so the history reads as a cut: the two faces are modified into their trimmed pieces, the edge’s neighbourhood gains the bevel face.
A seam (an edge between two faces of one shell on one surface facing
one way, as a boolean leaves where it joined two flats) is no edge of
the part’s form, and naming one names nothing: the solid comes back as
it is. See chamfer_edges_with.
What solid shares with other shapes is copied before it is
worked on (ogeom_algo::on_own_nodes), which leaves them as they are.
§Errors
OgeomError::Construction if the edge is
not straight, not convex, not shared by exactly two planar faces of
solid, or distance is not a usable length.