
Surface reconstruction library and CLI for particle data from SPH simulations, written in Rust.
Repo InteractiveComputerGraphics/splashsurf, read from GitHub 1 min ago. InteractiveComputerGraphics has not joined Take My Repo.
This release makes use of SIMD instructions on CPUs supporting either AVX2 and FMA or NEON instruction sets. This is currently implemented in the particle to grid levelset evaluation in the subdomain-based reconstruction. Currently, it is only supported for single-precision (f32) reconstructions. If the compact support per particle is relatively large compared to the marching cubes grid resolution (e.g. smoothing length of 2 and cube size of 0.5) speedups of ~5x with AVX and ~3x with NEON can be expected for the reconstruction itself.
--simd=on/off CLI flag to enable/disable use of SIMD in kernels and levelset evaluation if supported by the CPUsimd argument to reconstruction_pipeline and reconstruct_surface to enable/disable use of SIMD in kernels and levelset evaluation if supported by the CPUDensityMap (borrowed & owned) as input for the marching cubes triangulation, useful for the Python bindingsDiscreteSquaredDistanceCubicKernel by standard CubicSplineKernel for SPH interpolation (no noticeable performance difference)Index types are signed integers implementing the num_traits::Signed trait. Currently, the reconstruction does not work (correctly) with unsigned integers.SurfaceReconstruction public, remove previous getter functionsreconstruction_pipeline functionMeshAttribute, avoids copies in CLI and Python packageThis release adds Python bindings for the CLI and library! See README for more details.
splashsurf crate to allow using high-level CLI functions from other crates--mesh-cleanup-snap-dist to limit the snapping distance along cube edges (relative to marching cube size) of the marching cubes cleanup step (default is to snap without limit)--check_mesh_orientation to check if the mesh orientation is consistent (i.e. vertex normals have the same orientation as all adjacent face normals)--subdomain-grid)--subdomain-grid=on by defaultThis release implements "Weighted Laplacian Smoothing for Surface Reconstruction of Particle-based Fluids" (Löschner, Böttcher, Jeske, Bender; 2023), mesh cleanup based on "Mesh Displacement: An Improved Contouring Method for Trivariate Data" (Moore, Warren; 1991) and a new, more efficient domain decomposition (see README.md for more details).
--subdomain-grid=on--mesh-smoothing-iters=..., --mesh-smoothing-weights=on etc.marching_cubes_cleanup function: a marching cubes "mesh cleanup" decimation inspired by "Mesh Displacement: An Improved Contouring Method for Trivariate Data" (Moore, Warren 1991)--mesh-cleanup=onTriMesh3d to find non-manifold edges and vertices--mesh-check-manifold=on, --mesh-check-closed=onconvert_tris_to_quads function: greedily merge triangles to quads if they fulfill certain criteria (maximum angle in quad, "squareness" of the quad, angle between triangle normals)--generate-quads=on etc.MixedTriQuadMesh3d)--particle-aabb-min/--particle-aabb-max--mesh-aabb-min/--mesh-aabb-max