Package org.web3d.util.spatial
Interface SpatialPartition
- All Known Implementing Classes:
GridTrianglePartition
public interface SpatialPartition
A structure which can spatial partition items.
- Author:
- Alan Hudson.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the structure of all data.int[]
getObjects
(Region region) Gets the objects in the specified region.
-
Method Details
-
clear
void clear()Clear the structure of all data. -
getObjects
Gets the objects in the specified region. Any object which is contained or overlaps the region will be returned. Objects exactly on a voxel boundary shall be returned in all touching regions.- Parameters:
region
- The region of interest.- Returns:
- objs The list of object ids
-