MarchingCubes.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_MARCHING_CUBES_HPP
12 #define CUBBYFLOW_MARCHING_CUBES_HPP
13 
14 #include <Core/Array/ArrayView.hpp>
16 #include <Core/Matrix/Matrix.hpp>
17 
18 namespace CubbyFlow
19 {
38 void MarchingCubes(const ConstArrayView3<double>& grid,
39  const Vector3D& gridSize, const Vector3D& origin,
40  TriangleMesh3* mesh, double isoValue = 0,
41  int bndClose = DIRECTION_ALL,
42  int bndConnectivity = DIRECTION_NONE);
43 } // namespace CubbyFlow
44 
45 #endif
constexpr int DIRECTION_ALL
All direction.
Definition: Constants.hpp:332
void MarchingCubes(const ConstArrayView3< double > &grid, const Vector3D &gridSize, const Vector3D &origin, TriangleMesh3 *mesh, double isoValue=0, int bndClose=DIRECTION_ALL, int bndConnectivity=DIRECTION_NONE)
Computes marching cubes and extract triangle mesh from grid.
Definition: pybind11Utils.hpp:20
constexpr int DIRECTION_NONE
No direction.
Definition: Constants.hpp:311
Vector3< double > Vector3D
Definition: Matrix.hpp:787