adaptive_octree_with_bounding_box

Function adaptive_octree_with_bounding_box 

Source
pub fn adaptive_octree_with_bounding_box<T: RealType>(
    particles: ArrayView2<'_, T>,
    max_particles: usize,
    origin: [f64; 3],
    diameter: [f64; 3],
    balance_mode: BalanceMode,
) -> Octree<'_, T>
Expand description

Create an adaptive Octree with given bounding box.

Returns a AdaptiveOctree struct describing an adaptive octree.

ยงArguments

  • particles - A (3, N) array of particles of type f32 or f64.
  • max_particles - Maximum number of particles.
  • origin - The origin of the bounding box.
  • diameter - The diameter of the bounding box in each dimension.
  • balance_mode - Use Balanced for a 2:1 balanced octree, Unbalanced otherwise.