[−][src]Struct splashsurf_lib::octree::OctreeNode
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]
&self,
min: &Vector3<R>,
cell_size: R
) -> Result<UniformGrid<I, R>, GridConstructionError<I, R>>
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]
&mut self,
grid: &UniformGrid<I, R>,
particle_positions: &[Vector3<R>],
margin: R
)
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]
&mut self,
grid: &UniformGrid<I, R>,
particle_positions: &[Vector3<R>],
margin: R,
parallel_policy: &ParallelPolicy
)
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]
fn clone(&self) -> OctreeNode<I, R>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
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]
I: RefUnwindSafe,
R: RefUnwindSafe,
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]
I: Unpin,
R: Unpin,
impl<I, R> UnwindSafe for OctreeNode<I, R> where
I: UnwindSafe,
R: UnwindSafe,
[src]
I: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MutVisitableTree for T where
T: TreeNodeMut,
[src]
T: TreeNodeMut,
fn visit_mut_dfs<F: FnMut(&mut Self)>(&mut self, mut visitor: F)
[src]
fn visit_mut_bfs<F: FnMut(&mut Self)>(&mut self, mut visitor: F)
[src]
impl<T> ParMutVisitableTree for T where
T: TreeNodeMut + Send + Sync,
[src]
T: TreeNodeMut + Send + Sync,
fn par_visit_mut_bfs<F>(&mut self, visitor: F) where
Self: Send + Sync,
F: Fn(&mut Self) + Sync,
[src]
Self: Send + Sync,
F: Fn(&mut Self) + Sync,
fn par_visit_mut_dfs_post<F>(&mut self, visitor: F) where
Self: Send + Sync,
F: Fn(&mut Self) + Sync,
[src]
Self: Send + Sync,
F: Fn(&mut Self) + Sync,
impl<T> ParVisitableTree for T where
T: TreeNode + Send + Sync,
[src]
T: TreeNode + Send + Sync,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> VisitableTree for T where
T: TreeNode,
[src]
T: TreeNode,