Skip to content

Commit e06dff1

Browse files
committed
Readme update
1 parent 3b27539 commit e06dff1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TriangleMeshDistance
22
Header only*, single file, simple and efficient C++11 library to compute the signed distance function to a triangle mesh.
33

4-
The distance computation to the triangle collection is accelerated with a sphere bounding volume hierarchy. The sign of the distance is resolved with the method presented in *"Generating Signed Distance Fields From Triangle Meshes"* by Bærentzen, Andreas & Aanæs, Henrik. (2002).
4+
The distance computation to the triangle collection is accelerated with a sphere bounding volume hierarchy. The sign of the distance is resolved with the method presented in *"Generating Signed Distance Fields From Triangle Meshes"* by Bærentzen, Andreas & Aanæs, Henrik. (2002). Assuming triangle normals point outwards from the enclosed volume, the sign of the distance will be positive outside and negative inside.
55

66
\* Depends on Eigen
77

@@ -28,6 +28,13 @@ std::cout << "Nearest triangle index: " << result.triangle_id << std::endl;
2828
2929
## What you need to know about TriangleMeshDistance
3030
- The input triangle mesh must be fully connected and watertight. Triangle soups and meshes with holes will return the correct distance but the sign will be undefined.
31+
- Triangle winding (consistent normals orientation) is not verified. The input mesh is required to have consistent normals.
3132
- `TriangleMeshDistance` keeps a copy of the vertex and triangle data.
3233
- The pseudonormals required to compute signed distances are calculated and stored at building time.
3334
- `TriangleMeshDistance` can be declared empty and constructed multiple times with different meshes. If the new mesh needs less memory than the curent one, memory allocations will be avoided.
35+
36+
## Projects using TriangleMeshDistance
37+
38+
- [Discregrid](https://github.com/InteractiveComputerGraphics/Discregrid) - A static C++ library for the generation of discrete functions on a box-shaped domain. This is especially suited for the discretization of signed distance fields.
39+
- [PBD](https://github.com/InteractiveComputerGraphics/PositionBasedDynamics) - A C++ library for physically-based simulation of rigid bodies, deformables, cloth and fluids using Position-Based Dynamics
40+
- [SPlisHSPlasH](https://github.com/InteractiveComputerGraphics/SPlisHSPlasH) - A C++ library for the physically-based simulation of fluids using Smoothed Particle Hydrodynamics (cf. video) (Coming soon)

0 commit comments

Comments
 (0)