Skip to main content

fillet_edge_conic

Function fillet_edge_conic 

Source
pub fn fillet_edge_conic(
    solid: &BrepSolid,
    edge_id: u64,
    radius: f64,
    rho: f64,
    name: Option<&str>,
) -> Result<BrepSolid, KernelRefusal>
Expand description

Conic-section blend of one edge: the rolling ball’s two contacts joined by a conic instead of the ball’s arc.

radius places the contacts exactly where fillet_edge places them, the distance radius / tan(θ/2) from the edge on each face (θ the angle between the faces; radius itself at a right angle). The section is the rational quadratic through those contacts whose middle pole is the point where the two faces’ section lines meet (a point of the edge), with weights 1, rho / (1 − rho), 1. It is tangent to both faces at the contacts. rho in (0, 1) is the fraction of the way from the contacts’ chord to the edge that the section’s middle reaches: 0.5 is a parabola, below it an ellipse, above it a hyperbola, and sin(θ/2) / (1 + sin(θ/2)) (√2 − 1 at a right angle) is the ball’s own arc.

Built here for a straight edge between two planes, and for a circular edge between surfaces of revolution about its axis whose meridians are straight (a plane, a cylinder, a cone); any other edge is refused conic_edge by name. An edge that runs on into its neighbours is cut through to them, as a chamfer’s is.