Last summer, when we first were able to draw shapes with holes using SurfacePolylines, overriding the draw interior call to actually fill it (albeit poorly).
When upgrading to the latest WorldWind in January, we moved to using SurfacePolyline/SurfacePolygon instead, and found we'd lost this ability.
I've managed to get it back by making a copy of SurfacePolyline (which I've called SurfacePolySet), removing the override to drawInterior that makes it do nothing, and by changing the input location format from
to
I think nothing else was needed - the internal createGeometry was already set up correctly to take the new types, and the changes in logic were pretty simple.
Is this a good way to support holes in surface geometry, or is there a problem with it I'm missing? Is there a better way?
Thanks,
-Nathan Kronenfeld
When upgrading to the latest WorldWind in January, we moved to using SurfacePolyline/SurfacePolygon instead, and found we'd lost this ability.
I've managed to get it back by making a copy of SurfacePolyline (which I've called SurfacePolySet), removing the override to drawInterior that makes it do nothing, and by changing the input location format from
Code:
Iterable<? extends LatLon>
Code:
Iterable<? extends Iterable<? extends LatLon>>
Is this a good way to support holes in surface geometry, or is there a problem with it I'm missing? Is there a better way?
Thanks,
-Nathan Kronenfeld
Comment