[][src]Struct splashsurf_lib::octree::OctreeNode

pub struct OctreeNode<I: Index, R: Real> { /* fields omitted */ }

Represents a node in the octree hierarchy and stores child nodes, implements tree iteration/visitation from the generic_tree module

Implementations

impl<I: Index, R: Real> OctreeNode<I, R>[src]

pub fn new(min_corner: PointIndex<I>, max_corner: PointIndex<I>) -> Self[src]

pub fn data(&self) -> &NodeData<I, R>[src]

Returns a reference to the data stored in the node

pub fn min_corner(&self) -> &PointIndex<I>[src]

Returns the PointIndex of the lower corner of the octree node

pub fn max_corner(&self) -> &PointIndex<I>[src]

Returns the PointIndex of the upper corner of the octree node

pub fn aabb(&self, grid: &UniformGrid<I, R>) -> AxisAlignedBoundingBox3d<R>[src]

Returns the AABB represented by this octree node

pub fn grid(
    &self,
    min: &Vector3<R>,
    cell_size: R
) -> Result<UniformGrid<I, R>, GridConstructionError<I, R>>
[src]

Constructs a UniformGrid that represents the domain of this octree node

pub fn subdivide_with_margin(
    &mut self,
    grid: &UniformGrid<I, R>,
    particle_positions: &[Vector3<R>],
    margin: R
)
[src]

Performs a subdivision of this node while considering a margin for "ghost particles" around each octant

pub fn subdivide_with_margin_par(
    &mut self,
    grid: &UniformGrid<I, R>,
    particle_positions: &[Vector3<R>],
    margin: R,
    parallel_policy: &ParallelPolicy
)
[src]

Parallel subdivision of this node while considering a margin for "ghost particles" around each octant

Trait Implementations

impl<I: Clone + Index, R: Clone + Real> Clone for OctreeNode<I, R>[src]

impl<I: Debug + Index, R: Debug + Real> Debug for OctreeNode<I, R>[src]

impl<I: Index, R: Real> TreeNode for OctreeNode<I, R>[src]

fn children(&self) -> &[Box<Self>][src]

Returns a slice of all child nodes

impl<I: Index, R: Real> TreeNodeMut for OctreeNode<I, R>[src]

fn children_mut(&mut self) -> &mut [Box<Self>][src]

Returns a mutable slice of all child nodes

Auto Trait Implementations

impl<I, R> RefUnwindSafe for OctreeNode<I, R> where
    I: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<I, R> Send for OctreeNode<I, R>[src]

impl<I, R> Sync for OctreeNode<I, R>[src]

impl<I, R> Unpin for OctreeNode<I, R> where
    I: Unpin,
    R: Unpin
[src]

impl<I, R> UnwindSafe for OctreeNode<I, R> where
    I: UnwindSafe,
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MutVisitableTree for T where
    T: TreeNodeMut
[src]

impl<T> ParMutVisitableTree for T where
    T: TreeNodeMut + Send + Sync
[src]

impl<T> ParVisitableTree for T where
    T: TreeNode + Send + Sync
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> VisitableTree for T where
    T: TreeNode
[src]