Skip to main content

fillet_edge_distances

Function fillet_edge_distances 

Source
pub fn fillet_edge_distances(
    model: &mut Model,
    solid: &Shape,
    edge: &Shape,
    face: &Shape,
    on_face: f64,
    on_other: f64,
    profile: RoundProfile,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Round a straight edge between two planar faces with a band that meets face on_face from the edge and the edge’s other face on_other from it, its section profile between the two contacts.

The band is tangent to each face along its contact line. Naming the other face with the distances swapped builds the same solid, to the bit. With equal distances the elliptical profile is the circular round fillet_edge builds on the edge, by the radius whose ball touches each face that far from the edge: the same call. Otherwise the band is the conic arc swept along the edge, exact, and its ends are the circular round’s: square caps where the edge ends at a wall, run out across a face that cuts the corner away past an end, trimmed by a face overhanging the corner.

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 where face is not one of the edge’s two faces, a distance is not a usable length, a conic’s rho is not strictly between 0 and 1, the edge is not straight between two planes, or a contact sets back past its face’s side; with equal distances and the elliptical profile, as fillet_edge.