Click or drag to resize
DigitalRuneISpatialPartitionTGetAabbForItem Property
Gets or sets the method that computes the Aabb of an item.

Namespace: DigitalRune.Geometry.Partitioning
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
Func<T, Aabb> GetAabbForItem { get; set; }

Property Value

Type: FuncT, Aabb
The method that computes the axis-aligned bounding box of an item.
Remarks

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.

See Also