MarchingCubes.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: MarchingCubes.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Computes marching cubes and extract triangle mesh from grid.
6 > Created Time: 2017/07/09
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_MARCHING_CUBES_H
10 #define CUBBYFLOW_MARCHING_CUBES_H
11 
14 #include <Core/Vector/Vector3.h>
15 
16 namespace CubbyFlow
17 {
33  void MarchingCubes(
34  const ConstArrayAccessor3<double>& grid,
35  const Vector3D& gridSize,
36  const Vector3D& origin,
37  TriangleMesh3* mesh,
38  double isoValue = 0,
39  int bndFlag = DIRECTION_ALL);
40 }
41 
42 #endif
constexpr int DIRECTION_ALL
All direction.
Definition: Constants.h:187
Definition: pybind11Utils.h:24
void MarchingCubes(const ConstArrayAccessor3< double > &grid, const Vector3D &gridSize, const Vector3D &origin, TriangleMesh3 *mesh, double isoValue=0, int bndFlag=DIRECTION_ALL)
Computes marching cubes and extract triangle mesh from grid.
Vector3< double > Vector3D
Double-type 3D vector.
Definition: Vector3.h:353