pub fn sample_edges_encoded(
solid: &BrepSolid,
chord_tolerance: f64,
) -> Result<Vec<f64>, String>Expand description
Compute every edge’s shared samples and serialize them into a flat f64
buffer for transfer to face-range workers. Layout:
[edge_count, (edge_id, sample_count, frac_0..n, x_0,y_0,z_0, ...), ...]
(fractions.len() == positions.len(), so one count per edge). Edge ids ride
as f64 exactly as the solid codec already carries them.