Struct splashsurf_lib::Parameters [−][src]
pub struct Parameters<R: Real> { pub particle_radius: R, pub rest_density: R, pub compact_support_radius: R, pub cube_size: R, pub iso_surface_threshold: R, pub domain_aabb: Option<AxisAlignedBoundingBox3d<R>>, pub enable_multi_threading: bool, pub spatial_decomposition: Option<SpatialDecompositionParameters<R>>, }
Expand description
Parameters for the surface reconstruction
Fields
particle_radius: R
Radius per particle (used to calculate the particle volume)
rest_density: R
Rest density of the fluid
compact_support_radius: R
Compact support radius of the kernel, i.e. distance from the particle where kernel reaches zero (in distance units, not relative to particle radius)
cube_size: R
Edge length of the marching cubes implicit background grid (in distance units, not relative to particle radius)
iso_surface_threshold: R
Density threshold value to distinguish between the inside (above threshold) and outside (below threshold) of the fluid
domain_aabb: Option<AxisAlignedBoundingBox3d<R>>
Manually restrict the domain to the surface reconstruction. If not provided, the smallest AABB enclosing all particles is computed instead.
enable_multi_threading: bool
Whether to allow multi threading within the surface reconstruction procedure
spatial_decomposition: Option<SpatialDecompositionParameters<R>>
Parameters for the spatial decomposition (octree subdivision) of the particles. If not provided, no octree is generated and a global approach is used instead.
Implementations
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Parameters<R> where
R: RefUnwindSafe,
impl<R> Send for Parameters<R>
impl<R> Sync for Parameters<R>
impl<R> Unpin for Parameters<R> where
R: Unpin,
impl<R> UnwindSafe for Parameters<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V