PolygonPipeline

PolygonPipeline

Methods

<static>

DOC_TBA

Throws:

<static>

DOC_TBA

Parameters:
Name Type Argument Description
positions DOC_TBA DOC_TBA
indices DOC_TBA DOC_TBA
granularity Number <optional>
DOC_TBA
Throws:

<static>

DOC_TBA

Throws:
Returns:
WindingOrder DOC_TBA

<static>

DOC_TBA

Throws:

<static>

Given a polygon defined by an outer ring with one or more inner rings (holes), return a single list of points representing a polygon defined by the outer ring with the inner holes removed.

Parameters:
Name Type Description
outerRing Array An array of Cartesian points defining the outer boundary of the polygon.
innerRings Array An array of arrays of Cartesian points, where each array represents a hole in the polygon.
Throws:
Returns:
A single list of Cartesian points defining the polygon, including the eliminated inner ring.
Example
// Simplifying a polygon with multiple holes.
outerRing = PolygonPipeline.eliminateHoles(outerRing, innerRings);
polygon.setPositions(outerRing);

<static>

DOC_TBA Cleans up a simple polygon by removing duplicate adjacent positions and making the first position not equal the last position.

Throws:

<static>

DOC_TBA

Throws:
DeveloperError : ellipsoid is required.