Path Based Shapes & Polygon Hierarchies

Is there a utility that can be used to create a Polygon/Polygon Hierarchy based on a Shaped that is described with a series of Move To, Line To, Close To segments?

Does the Polygon Hierarchy expect that the holes are completely contained in the outer positions array?

Any input would appreciated.

Hi @rberge,

Welcome to the community! What exactly do you mean by a polygon hierarchy?



The Cesium api defines a Polygon Hierarchy as a set of positions and holes. The holes is a polygon hierarchy itself. See PolygonHierarchy - Cesium Documentation

The sandcastle has a demo using it. But in testing if a position of a hole is not contained within the outer positions the shape does not fill correctly.

1 Like