Struct PolygonUnionResult

Immutable owning result of polygon-union construction.

struct PolygonUnionResult;

Successful results contain zero or more canonical polygon components. Component coordinates use the established construction scalar, currently double for every supported polygon-union input scalar.

Ordinary copies are shallow descriptor copies. They share immutable GC-backed geometry storage and do not deep-copy point data.

Component access returns read-only Polygon2View!double descriptors backed by the immutable storage kept alive by the returned views themselves.

Geometry access requires succeeded == true. Check status or succeeded before inspecting length, empty, or indexing the result.

PolygonUnionResult.init has status PolygonUnionStatus.notComputed.

Properties

NameTypeDescription
empty[get] boolTrue when a successful union contains no polygon components.
length[get] ulongNumber of polygon components in a successful result.
status[get] PolygonUnionStatusChecked construction outcome.
succeeded[get] boolTrue exactly when a complete polygon union was constructed.

Methods

NameDescription
opIndex (index) Returns one canonical polygon component as a read-only view.