Skip to main content

fillet_edges_variable_law

Function fillet_edges_variable_law 

Source
pub fn fillet_edges_variable_law(
    solid: &BrepSolid,
    edge_points: &[Vec3],
    edge_names: Option<&[String]>,
    law: &RadiusLaw,
    chamfer: bool,
    name: Option<&str>,
) -> Result<BrepSolid, String>
Expand description

Fillet (or chamfer) a chain of edges under a composable radius law evaluated on the chain’s cumulative arc-length abscissa (the OCCT Law_Composite model; see crate::law::RadiusLaw). The selected edges must form ONE OPEN CHAIN (or be a single edge); the chain starts at the free end of the earliest-selected end edge, and the law’s abscissa maps proportionally onto the chain’s measured arc length (a law built with the chain’s own lengths — e.g. crate::law::RadiusLaw::from_vertex_radii — maps 1:1). Endpoint radii are met exactly; radii at shared chain vertices match by the law’s continuity, so the per-edge blends miter through the corners; a chain whose blends cannot be mitered REFUSES rather than distorting the law through the sequential rebuild.