Open JulienPeloton opened 6 years ago
The equivalent of Envelope in JTS will be Sphere here. The difference between 2 concentric spheres will define the elements of the grid (from the partition point of view). In a sense, we will have a onion space!
With the current implementation, we have:
// Initialise our space:
// z_min = 0.0, z_max = 1.0, with splits every dZ = 0.1.
val partitioning = new OnionPartitioning
partitioning.LinearOnionPartitioning(0.0, 1.0, 0.1)
// Grab the grid elements
val grids = partitioning.getGrids
// Build our partitioner
val partitioner = new OnionPartitioner(GridType.LINEARONIONGRID, grids)
// Draw a point and place it on our grid
val p = new Point3D(0.0, 0.0, 0.45)
val iterator = partitioner.placeObject(p)
Still plenty of TODOs, but things are moving forward (see https://github.com/JulienPeloton/spark3D/pull/12). Random thoughts:
Z-Shells may be ordered
Here is the current idea for partitioning the space.