Skip to content

Commit e3031e4

Browse files
authored
Merge pull request #199 from InteractiveComputerGraphics/weighted_smoothing
Weighted smoothing, mesh cleanup etc.
2 parents 31940f4 + fa38bbd commit e3031e4

38 files changed

+5470
-609
lines changed

CHANGELOG.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,24 @@
22

33
The following changes are present in the `main` branch of the repository and are not yet part of a release:
44

5+
- N/A
6+
7+
## Version 0.10.0
8+
9+
This release implements ["Weighted Laplacian Smoothing for Surface Reconstruction of Particle-based Fluids" (Löschner, Böttcher, Jeske, Bender; 2023)](https://animation.rwth-aachen.de/publication/0583/), mesh cleanup based on ["Mesh Displacement: An Improved Contouring Method for Trivariate Data" (Moore, Warren; 1991)](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.5214&rep=rep1&type=pdf) and a new, more efficient domain decomposition (see README.md for more details).
10+
11+
- Lib: Implement new spatial decomposition based on a regular grid of subdomains (subdomains are dense marching cubes grids)
512
- CLI: Make new spatial decomposition available in CLI with `--subdomain-grid=on`
6-
- Lib: Implement new spatial decomposition based on a regular grid of subdomains, subdomains are dense marching cubes grids
7-
- Lib: Support for reading and writing PLY meshes
13+
- Lib: Implement weighted Laplacian smoothing to remove bumps from surfaces according to paper "Weighted Laplacian Smoothing for Surface Reconstruction of Particle-based Fluids" (Löschner, Böttcher, Jeske, Bender 2023)
14+
- CLI: Add arguments to enable and control weighted Laplacian smoothing `--mesh-smoothing-iters=...`, `--mesh-smoothing-weights=on` etc.
15+
- Lib: Implement `marching_cubes_cleanup` function: a marching cubes "mesh cleanup" decimation inspired by "Mesh Displacement: An Improved Contouring Method for Trivariate Data" (Moore, Warren 1991)
16+
- CLI: Add argument to enable mesh cleanup: `--mesh-cleanup=on`
17+
- Lib: Add functions to `TriMesh3d` to find non-manifold edges and vertices
18+
- CLI: Add arguments to check if output meshes are manifold (no non-manifold edges and vertices): `--mesh-check-manifold=on`, `--mesh-check-closed=on`
19+
- Lib: Support for mixed triangle and quad meshes
20+
- Lib: Implement `convert_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)
21+
- CLI: Add arguments to enable and control triangle to quad conversion with `--generate-quads=on` etc.
22+
- Lib: Support for reading and writing PLY meshes (`MixedTriQuadMesh3d`)
823
- CLI: Support for filtering input particles using an AABB with `--particle-aabb-min`/`--particle-aabb-max`
924
- CLI: Support for clamping the triangle mesh using an AABB with `--mesh-aabb-min`/`--mesh-aabb-max`
1025

@@ -69,9 +84,9 @@ The following changes are present in the `main` branch of the repository and are
6984

7085
This release fixes a couple of bugs that may lead to inconsistent surface reconstructions when using domain decomposition (i.e. reconstructions with artificial bumps exactly at the subdomain boundaries, especially on flat surfaces). Currently there are no other known bugs and the domain decomposed approach appears to be really fast and robust.
7186

72-
In addition the CLI now reports more detailed timing statistics for multi-threaded reconstructions.
87+
In addition, the CLI now reports more detailed timing statistics for multi-threaded reconstructions.
7388

74-
Otherwise this release contains just some small changes to command line parameters.
89+
Otherwise, this release contains just some small changes to command line parameters.
7590

7691
- Lib: Add a `ParticleDensityComputationStrategy` enum to the `SpatialDecompositionParameters` struct. In order for domain decomposition to work consistently, the per particle densities have to be evaluated to a consistent value between domains. This is especially important for the ghost particles. Previously, this resulted inconsistent density values on boundaries if the ghost particle margin was not at least 2x the compact support radius (as this ensures that the inner ghost particles actually have the correct density). This option is now still available as the `IndependentSubdomains` strategy. The preferred way, that avoids the 2x ghost particle margin is the `SynchronizeSubdomains` where the density values of the particles in the subdomains are first collected into a global storage. This can be faster as the previous method as this avoids having to collect a double-width ghost particle layer. In addition there is the "playing it safe" option, the `Global` strategy, where the particle densities are computed in a completely global step before any domain decomposition. This approach however is *really* slow for large quantities of particles. For more information, read the documentation on the `ParticleDensityComputationStrategy` enum.
7792
- Lib: Fix bug where the workspace storage was not cleared correctly leading to inconsistent results depending on the sequence of processed subdomains
@@ -91,7 +106,7 @@ Otherwise this release contains just some small changes to command line paramete
91106

92107
The biggest new feature is a domain decomposed approach for the surface reconstruction by performing a spatial decomposition of the particle set with an octree.
93108
The resulting local patches can then be processed in parallel (leaving a single layer of boundary cells per patch untriangulated to avoid incompatible boundaries).
94-
Afterwards, a stitching procedure walks the octree back upwards and merges the octree leaves by averaging density values on the boundaries.
109+
Afterward, a stitching procedure walks the octree back upwards and merges the octree leaves by averaging density values on the boundaries.
95110
As the library uses task based parallelism, a task for stitching can be enqueued as soon as all children of an octree node are processed.
96111
Depending on the number of available threads and the particle data, this approach results in a speedup of 4-10x in comparison to the global parallel approach in selected benchmarks.
97112
At the moment, this domain decomposition approach is only available when allowing to parallelize over particles using the `--mt-particles` flag.

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Visit https://bit.ly/cffinit to generate yours today!
33

44
cff-version: 1.2.0
5-
title: splashsurf
5+
title: '"splashsurf" Surface Reconstruction Software'
66
message: >-
77
If you use this software in your work, please consider
88
citing it using these metadata.
@@ -12,10 +12,10 @@ authors:
1212
given-names: Fabian
1313
affiliation: RWTH Aachen University
1414
orcid: 'https://orcid.org/0000-0001-6818-2953'
15-
url: 'https://www.floeschner.de/splashsurf'
15+
url: 'https://splashsurf.physics-simulation.org'
1616
abstract: >-
1717
Splashsurf is a surface reconstruction tool and framework
1818
for reconstructing surfaces from particle data.
1919
license: MIT
20-
version: 0.9.1
21-
date-released: '2023-04-19'
20+
version: 0.10.0
21+
date-released: '2023-09-25'

0 commit comments

Comments
 (0)