Skip to main content

chamfer_edges_with

Function chamfer_edges_with 

Source
pub fn chamfer_edges_with(
    model: &mut Model,
    solid: &Shape,
    specs: &[(Shape, Chamfer)],
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Bevel several edges of a solid as one operation, each with its own chamfer.

Every wedge is built on the solid as it stands before the call, and then every wedge is applied. That is what makes the bevels mitre: where two meet at a vertex, each wedge still reaches the corner, the two cut the region above either bevel plane, and the planes meet along their own line with neither a step nor a cap. One edge at a time (chamfer_edge in a loop) builds the second wedge on an edge the first bevel has already shortened, and each corner keeps a small tetrahedron and two extra faces. Where three bevels meet at a convex vertex the three planes meet at one point, the mitre of three planes.

ยงErrors

As chamfer_edge, chamfer_edge_distances and chamfer_edge_angle per edge, judged on the solid as it stands before the call; and OgeomError::Construction if no edges are given.