Skip to main content

simplify_path

Function simplify_path 

Source
pub fn simplify_path<T>(
    path: &Path<T>,
    epsilon: f64,
    is_closed_path: bool,
) -> Path<T>
where T: Copy + ToF64 + FromF64 + Num + PartialEq,
Expand description

Simplify a path by removing vertices that are within epsilon distance of an imaginary line between their neighbors. Direct port from clipper.h SimplifyPath.