Skip to main content

sample_edge_polylines

Function sample_edge_polylines 

Source
pub fn sample_edge_polylines(
    solid: &BrepSolid,
    chord_tolerance: f64,
) -> Result<Vec<(u64, Vec<Vec3>)>, String>
Expand description

Display edge polylines for native in-process consumers (brep-render): every NON-degenerate edge’s chord-tolerance samples as (edge_id, points), sorted by edge id so the output is deterministic (the sample map is a HashMap). The samples are the same shared samples the watertight tessellation uses, so the displayed edges lie exactly on the mesh’s face boundaries.