NodeInterface.computePolygons() method
Compute polygons for this node.
Signature:
computePolygons(options?: NodeInterfaceComputePolygonsOptions): Promise<NodeInterface>;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
(Optional) |
Promise<NodeInterface>
Remarks
The polygons should be sorted by their first point. Use the X value first, and fallback to the Y. Holes should be sorted using the same mechanism.
Calling this method multiple times should not recompute polygons i.e. it should _cache_ computed polygons, keyed by quality to reduce compute if we need them more than once.