CompressedAabbTreeGetAabbForItem Property |
Namespace: DigitalRune.Geometry.Partitioning
When creating a ISpatialPartitionT a callback that computes the Aabb for a given item, must be specified. The spatial partition does not know how to compute the positions and extents of the items. Only the GetAabbForItem delegate is used to compute an Aabbs for each item. The computed Aabb is used to define the spatial properties of a property. For a single item the method must always return the same Aabb. If the AABB of an item has changed (e.g. the item has moved or changed shape), Invalidate(T) must be called.
Important: Changing this property does not automatically invalidate the spatial partition. The spatial partition assumes the previous AABBs are still valid. If, however, the spatial partition should to be recomputed, the method Invalidate needs to be called manually.