Skip to main content

fillet_corner_2d

Function fillet_corner_2d 

Source
pub fn fillet_corner_2d(
    model: &mut Model,
    wire: &Shape,
    vertex: &Shape,
    radius: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Round a corner of a wire with an arc tangent to both of its edges.

vertex names the corner; the two edges meeting there must be straight. The result is a new wire with the two edges trimmed to the tangency points and the arc between them: the corner vertex is deleted, the edges are modified into their trimmed selves, and the arc is generated from the vertex.

ยงErrors

OgeomError::Construction if the vertex is not a corner of the wire between two straight edges, the edges are collinear, radius is not a usable length, or the tangency points fall off either edge.