Crate splashsurf_lib[−][src]
Expand description
Library for surface reconstruction of SPH particle data using marching cubes.
Entry points are the reconstruct_surface
or reconstruct_surface_inplace
functions.
Feature flags
The following features are all non-default features to reduce the amount of additional dependencies.
vtk_extras
: Enables helper functions and trait implementations to export meshes usingvtkio
. In particular it addsFrom
impls for the mesh types used by this crate to convert them tovtkio::model::UnstructuredGridPiece
andvtkio::model::DataSet
types. If the feature is enabled, The crate exposes itsvtkio
dependency assplashsurflib::vtkio
.profiling
: Enables profiling of internal functions. The resulting data can be displayed using the functions from theprofiling
module. Furthermore, it exposes theprofile
macro that can be used e.g. by binary crates calling into this library to add their own profiling scopes to the measurements. If this features is not enabled, the macro will just expend to a no-op and remove the (small) performance overhead of the profiling.
Re-exports
pub use nalgebra;
pub use vtkio;
pub use crate::density_map::DensityMap;
pub use crate::octree::SubdivisionCriterion;
pub use crate::uniform_grid::UniformGrid;
Modules
Computation of sparse density maps (evaluation of particle densities and mapping onto sparse grids)
Generic tree visitation functions that can be used with tree-like structures
SPH kernel function implementations
Triangulation of DensityMap
s using marching cubes
Basic mesh types used by the library and implementation of VTK export
Simple neighborhood search based on spatial hashing
Octree for spatially partitioning particle sets
profiling
Implementation details for the profile
macro
Helper types for cartesian coordinate system topology
Helper types for the implicit background grid used for marching cubes
Macros
profiling
Creates a scope for profiling
Structs
Type representing an axis aligned bounding box in arbitrary dimensions
Parameters for the surface reconstruction
Parameters for the spatial decomposition
Result data returned when the surface reconstruction was successful
Enums
Available strategies for the computation of the particle densities
Error type returned when the surface reconstruction fails
Traits
Trait that has to be implemented for types to be used as background grid cell indices in the context of the library
Trait that has to be implemented for types to be used as floating points values in the context of the library (e.g. for coordinates, density values)
Convenience trait that combines Send
and Sync
Functions
Constructs the background grid for marching cubes based on the parameters supplied to the surface reconstruction
Initializes the global thread pool used by this library with the given parameters.
Performs a marching cubes surface construction of the fluid represented by the given particle positions
Performs a marching cubes surface construction of the fluid represented by the given particle positions, inplace
Type Definitions
Convenience type alias for an AABB in two dimensions
Convenience type alias for an AABB in three dimensions