Skip to main content

Module types

Module types 

Source
Expand description

Core types for exact-poly integer polygon geometry. All coordinates are i64 (fixed-point, SCALE=1_000_000 units = 1 meter). No float arithmetic anywhere in this library.

Structs§

Attempt
DecomposeOptions
Options for the decompose() cascade.
DecomposeResult
Result of a successful decomposition.
ProtocolConfig
Protocol-specific configuration for polygon validation. Passed to validation and decomposition functions. Use ProtocolConfig::merca() for explicit on-chain Merca rules. Use ProtocolConfig::permissive() for demos/testing with no validation limits.

Enums§

DecompError
Decomposition error.
Outcome
Strategy
TopologyError
Topology validation error with structured diagnostic data. Serializable to JSON via serde for WASM boundary.