[][src]Crate splashsurf_lib

Library for surface reconstruction using marching cubes for SPH particle data. Entry point is the reconstruct_surface function.

Re-exports

pub use nalgebra;
pub use density_map::DensityMap;

Modules

density_map

Computation of sparse density maps (evaluation of particle densities and mapping onto sparse grids)

kernel

SPH kernel function implementations

marching_cubes

Triangulation of density maps using marching cubes

mesh

Basic mesh types used by the library and implementation of VTK export

neighborhood_search

Simple neighborhood search based on spatial hashing

Structs

AxisAlignedBoundingBox

Type representing an axis aligned bounding box in arbitrary dimensions

Parameters

Parameters for the surface reconstruction

SurfaceReconstruction

Result data returned when the surface reconstruction was successful

Enums

GridConstructionError

Error type for the construction of a UniformGrid

ReconstructionError

Error type returned when the surface reconstruction fails

Traits

Index

Trait that has to be implemented for types to be used as grid cell indices in the context of the library

Real

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)

ThreadSafe

Trait that has to be implemented by Index and Real types to use them in parallelized algorithms

Functions

grid_for_reconstruction

Constructs the background grid for marching cubes based on the parameters supplied to the surface reconstruction

reconstruct_surface

Performs a marching cubes surface construction of the fluid represented by the given particle positions

Type Definitions

AxisAlignedBoundingBox2d

Convenience type alias for an AABB in two dimensions

AxisAlignedBoundingBox3d

Convenience type alias for an AABB in three dimensions

UniformGrid

Abbreviated type alias for a uniform cartesian cube grid in 3D