PolygonNode
constructor(polygon: Polygon, style: ShapeStyle = ShapeStyle.POLYGON, tags: Set<String> = emptySet())
Builds the leaf around polygon's vertices.
Parameters
polygon
The geometry to decorate; its vertex list is kept by reference.
style
The concrete paint; the polygon default when omitted.
tags
Free-form tokens riding the leaf; empty by default.
Builds the leaf as a copy of node: the same geometry, and node's own style and tags unless either is overridden.
Construction reuses node's vertex list by reference, so the copy carries the same geometry at full Double precision. Overriding style or tags swaps that part alone — the other still comes from node.