TriangleMeshToSDF.hpp
Go to the documentation of this file.
1 // This code is based on Jet framework.
2 // Copyright (c) 2018 Doyub Kim
3 // CubbyFlow is voxel-based fluid simulation engine for computer games.
4 // Copyright (c) 2020 CubbyFlow Team
5 // Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6 // AI Part: Dongheon Cho, Minseo Kim
7 // We are making my contributions/submissions to this project solely in our
8 // personal capacity and are not conveying any rights to any intellectual
9 // property of any third parties.
10 
11 #ifndef CUBBYFLOW_TRIANGLE_MESH_TO_SDF_HPP
12 #define CUBBYFLOW_TRIANGLE_MESH_TO_SDF_HPP
13 
15 #include <Core/Grid/ScalarGrid.hpp>
16 
17 namespace CubbyFlow
18 {
26 void TriangleMeshToSDF(const TriangleMesh3& mesh, ScalarGrid3* sdf);
27 } // namespace CubbyFlow
28 
29 #endif
ScalarGrid< 3 > ScalarGrid3
3-D ScalarGrid type.
Definition: ScalarGrid.hpp:263
Definition: pybind11Utils.hpp:20
void TriangleMeshToSDF(const TriangleMesh3 &mesh, ScalarGrid3 *sdf)
Generates signed-distance field out of given triangle mesh. This function generates signed-distance f...