NodeInterface.computePolygons() method

Compute polygons for this node.

Signature:

computePolygons(options?: NodeInterfaceComputePolygonsOptions): Promise<NodeInterface>;

Parameters

Parameter

Type

Description

options

NodeInterfaceComputePolygonsOptions

(Optional)

**Returns:**

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.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.