Skip to main content

fillet_edges_partial

Function fillet_edges_partial 

Source
pub fn fillet_edges_partial(
    model: &mut Model,
    solid: &Shape,
    edges: &[Shape],
    radius: f64,
    tol: Tolerances,
) -> OgeomResult<(Built, Vec<BlendRefusal>)>
Expand description

Round what of a request can be rounded, leaving the rest sharp.

The edges are taken in request order; an edge joins the built set when fillet_edges builds it together with the edges accepted so far, corners, junctions and meetings between them as a full call builds them; an edge that does not is left sharp and reported, naming it, then the accepted edges the request’s check finds it collides with, or, refused by the build, the accepted edges sharing a vertex or a face with it. Each attempt is built on a copy of the model, and the model then becomes the copy holding the last attempt that built: the Built is fillet_edges on exactly the accepted edges, and its history says nothing of the refused ones. An edge the request’s check refuses together with the accepted ones is refused without building.

§Errors

As fillet_edges where no edge is accepted (the first edge’s refusal), and OgeomError::Cancelled when cancelled.