Skip to main content

Module validation

Module validation 

Source

Functions§

is_convex
perimeter_l1
validate_compactness
Boundary-level compactness check. Apply to a whole polygon’s outer boundary (single part, or the union boundary of a multipart polygon). NOT intended for individual parts of a multipart polygon — that would be stricter than on-chain and reject legitimate decompositions.
validate_edge_lengths
validate_part
Per-part structural validation mirroring polygon.move’s part() entry: vertex-count bounds, weak convexity, and minimum edge length.