public class RecursiveGridIsolineBuilder
extends Object
Compute isoline based on a zFunc and a set of initial coverage points P0={(x,y)} to seed the
computation.
This assume we have a z = Fz(x,y) function which can gives a z value for any given point (x,y), z
can be undefined for some region.
There are many tricks to reduce to the minimum the numbers of Fz samplings, explained in the code
below.
It will compute an isoline for a given z0 value. The isoline is composed of a list of n polygons,
CW for normal polygons, CCW for "holes". The isoline computation can be called multiple times on
the same builder for different z0 values: this will reduce the number of Fz sampling as they are
cached in the builder. Please note that the initial covering points must touch all isolines you
want to cover.
- Author:
- laurent