Loading...
Searching...
No Matches
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
17
18namespace CubbyFlow
19{
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
Generic N-dimensional array class interface.
Definition ArrayView.hpp:26
Definition Matrix.hpp:30
3-D triangle mesh geometry.
Definition TriangleMesh3.hpp:29
Definition pybind11Utils.hpp:21
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.
constexpr int DIRECTION_NONE
No direction.
Definition Constants.hpp:311
constexpr int DIRECTION_ALL
All direction.
Definition Constants.hpp:332