Initialise a new Onion space, by linearly slicing the radial coordinate.
Initialise a new Onion space, by linearly slicing the radial coordinate. The space is made of shells, that is each partition is the difference between two subsequent spheres. The resolution of the space, that is the radial distance between two partitions is given by the highest radial coordinate value divided by the number of partitions.
: (Int) Number RDD partitions
: (Double) Highest radial coordinate value for our space.
: (Boolean) True if the coordinate system of the data is spherical (r, theta, phi). False if the coordinate system of the data is cartesian.
Returns the n Shells required to build the n grid elements.
Returns the n Shells required to build the n grid elements.
(List[ShellEnvelope]) List of n Shells.
Get the highest radial coordinate value (max(Z)).
Get the highest radial coordinate value (max(Z)).
(RDD[T]) RDD of type T (which must extends Shape3D)
(Double) the highest radial coordinate value (max(Z)).
Elements of the Grid as List[ShellEnvelope]
Class to deal with the onion space. The idea is described here: https://github.com/JulienPeloton/spark3D/issues/11
The difference between 2 concentric spheres will define the elements of the grid (Spark partitions) such that we will have a onion space!