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

Tries to convert the parameters from one Real type to another Real type, returns None if conversion fails

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.