Skip to main content

is_straight

Function is_straight 

Source
pub fn is_straight(curve: &Curve) -> bool
Expand description

Whether a curve is a straight line, seeing through any trimming.

A line is its own polyline, so subdividing it is pure cost: the extra points land on the curve, satisfy every tolerance, and then propagate into the triangulation of every face the edge bounds.