ArborX / Spatial indexes / ArborX::BVH

ArborX::BVH<MemorySpace, Value, IndexableGetter, BoundingVolume>::size()

KOKKOS_FUNCTION size_type size() const noexcept;

Returns the number of leaves in the tree.

Parameters

(none)

Return value

The number of leaves in the tree.

Complexity

Constant.

See also

  • empty: checks whether the tree is empty.

  • bounds: returns the bounding volume that contains all leaves.