Function splitIntoTrapezoids

Convert simple y-monotone polygon into a chain of valid horizontal trapezoids.

bool splitIntoTrapezoids (
  const(Vector!(float,2)[]) poly,
  ref Buf!(beamui.graphics.swrast.HorizEdge) output
) nothrow @safe;

The trapezoid count is always less than the vertex count.

Returns

true if converted something.