Skip to main content

validate_part

Function validate_part 

Source
pub fn validate_part(
    ring_flat: &[i64],
    config: Option<JsValue>,
) -> Result<Option<String>, JsValue>
Expand description

Per-part structural validation mirroring polygon.move’s part() entry: vertex-count bounds, weak convexity, and minimum edge length.

Breaking change (was: also enforced compactness). Compactness is a boundary-level property; call validate_multipart_topology (or the full on-chain validator) to check the assembled polygon instead.