com.astrolabsoftware.spark3d.spatialPartitioning
: (List[Shape3D]) List of Shape3D objects which partition the space.
Gets the partitions which are the neighbors of the partitions which contain the input object.
Gets the partitions which are the neighbors of the partitions which contain the input object.
input object for which the neighbors are to be found
list of Tuple of neighbor partitions and their index/partition IDs
Method to return the index of a partition
Method to return the index of a partition
: (Any) The Key of the partition (Key/Value)
(Int) The key of the partition as Int.
Gets the partitions which contain the input object.
Gets the partitions which contain the input object.
input object for which the containment is to be found
list of Tuple of containing partitions and their index/partition IDs
Gets the partitions which are the neighbors to the input partition.
Gets the partitions which are the neighbors to the input partition. Useful when getting secondary neighbors (neighbors to neighbor) of the queryObject.
The boundary of the Node for which neighbors are to be found.
The index/partition ID of the containingNode
list of Tuple of secondary neighbor partitions and their index/partition IDs
Method to place a spatialObject (could a Point3D, a Sphere, and so on) on a grid.
Method to place a spatialObject (could a Point3D, a Sphere, and so on) on a grid. In practice it will assign a key (Int) to the spatialObject corresponding the partition index. This method must be specifically implemented for each class extending SpatialPartitioner.
: (T<:Shape3D) Object of type T = Shape3D, or any extension like Point3D, Sphere, ...
(Iterator[Tuple2[Int, T]]) Iterator over a tuple (Key, Object). Key represents the partition number to which the spatialObject T belongs to.
Abstract class for partitioning the 3D space. This class extends the Spark Partitioner class, and any new 3D partitioner must extend in turn the SpatialPartitioner class.