Class PolyTreeD
- All Implemented Interfaces:
Iterable<PolyPathBase>
The PolyTreeD object that's to receive a clipping solution is passed as a parameter to ClipperD.Execute. When the clipping operation finishes, this object will be populated with data representing the clipped solution.
A PolyTreeD object is a container for any number of PolyPathD child objects, each representing a single polygon contour. PolyTreeD's top level children will always be outer polygon contours. PolyPathD children may in turn contain their own children to any level of nesting. Children of outer polygon contours will always represent holes, and children of holes will always represent nested outer polygon contours.
PolyTreeD is a specialised PolyPathD object that's simply as a container for other PolyPathD objects and its own polygon property will always be empty.
PolyTreeD will never contain open paths (unlike in Clipper1) since open paths can't contain (own) other paths. When clipping open paths, these will always be represented in solutions via a separate PathsD structure.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.micycle1.clipper2.engine.PolyPathD
addChild, area, get, getPolygon, getScale, setScaleMethods inherited from class com.github.micycle1.clipper2.engine.PolyPathBase
clear, getCount, getIsHole, iterator, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PolyTreeD
public PolyTreeD()
-