News
2025-06-25: We published Python bindings for the CLI of splashsurf and most library features 🐍! Pre-built wheels can be installed using PIP: pip install pysplashsurf
. See the PyPI entry of pySplashsurf for more information.
2023-09-25: The project now implements the paper “Weighted Laplacian Smoothing for Surface Reconstruction of Particle-based Fluids” (Löschner, Böttcher, Jeske, Bender; 2023). It proposes a fast smoothing approach to avoid the typical bumpiness of the surfaces reconstructed from SPH simulations while preventing loss of volume for splashes and droplets that occurs with simple, non-specialized smoothing methods. The images below show a rendering of a typical surface reconstruction (on the left) with visible bumps due to the SPH particles compared to the same surface reconstruction with weighted smoothing applied (on the right):
You can see this rendering in motion in this video. For more details see the paper and the readme in the repository.
About
This project consists of the following crates:
- 🛠️
splashsurf
: Binary crate with a CLI (command line interface) to quickly run surface reconstructions of SPH particle data files from the terminal. Install withcargo install splashsurf
. - 🧰
splashsurf_lib
: Rust library that implements the reconstruction method used by the CLI. Allows integrating the reconstruction procedure directly into other Rust applications. Furthermore, it resembles a framework providing access to individual building blocks to create your own surface reconstruction pipeline. - 🐍
pysplashsurf
: Bindings to the CLI and library for Python. Install withpip install splashsurf
and see theREADME
for more details.
splashsurf
is a tool to reconstruct surfaces meshes from SPH particle data.
The first image shows the visualization of a set of particles from an SPH fluid simulation from SPlisHSPlasH.
The particle radius is 0.025
. As the rendering of a fluid should not look like a ball pit, a surface mesh has to be
reconstructed from this particle data. The next image shows a reconstructed surface mesh of the fluid produced by splashsurf
with a “smoothing length” of 2.2
times the particles radius and a cell size of 1.1
times the particle radius. The
third image shows a finer reconstruction with a cell size of 0.45
times the particle radius. These surface meshes can
then be fed into 3D rendering software such as Blender to generate beautiful water animations.
The result might look something like this:
For more information please refer to the GitHub repository of splashsurf.
Acknowledgements
This project contains notable contributions from the following people:
- Timna Böttcher (@timnaboettcher): co-developed the weighted smoothing approach
- Felix Kern (@Fek04): implemented the Python bindings for
splashsurf
- Fabian Löschner (@w1th0utnam3): implemented most of the surface reconstruction library and CLI including the domain decomposition