Skip to main content

chamfer_polygon

Function chamfer_polygon 

Source
pub fn chamfer_polygon(poly: &[Point2], distance: f64) -> Vec<Point2>
Expand description

Apply a chamfer (bevel) at each vertex of a polygon.

distance is how far from the vertex to cut on each adjacent edge.