adaptive_octree

Function adaptive_octree 

Source
pub fn adaptive_octree<T: RealType>(
    particles: ArrayView2<'_, T>,
    max_particles: usize,
    balance_mode: BalanceMode,
) -> Octree<'_, T>
Expand description

Create a adaptive octree.

Returns a AdaptiveOctree struct describing an adaptive octree.

ยงArguments

  • particles - A (3, N) array of particles of type f32 or f64.
  • max_particles - The maximum number of particles in each leaf.
  • balance_mode - Use Balanced for a 2:1 balanced octree, Unbalanced otherwise.