Skip to main content

Module polygon

Module polygon 

Source
Expand description

Generic 2-D polygon area — no topology or rendering dependency, so it lives here rather than in geop-ops-rasterize: geop-core-topology’s own edit code (splice_edge_into_face’s loop-orientation check) needs it too, and topology sits below rasterize in the dependency order.

Functions§

polygon_signed_area
Signed area of poly (positive for CCW, negative for CW).