libigl v2.5.0
Loading...
Searching...
No Matches
march_cube.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2021 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_MARCH_CUBE_H
9#define IGL_MARCH_CUBE_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12#include <unordered_map>
13namespace igl
14{
30 template <
31 typename DerivedGV,
32 typename Scalar,
33 typename Index,
34 typename DerivedV,
35 typename DerivedF>
37 const DerivedGV & GV,
38 const Eigen::Matrix<Scalar,8,1> & cS,
39 const Eigen::Matrix<Index,8,1> & cI,
40 const Scalar & isovalue,
41 Eigen::PlainObjectBase<DerivedV> &V,
42 Index & n,
43 Eigen::PlainObjectBase<DerivedF> &F,
44 Index & m,
45 std::unordered_map<int64_t,int> & E2V);
46}
47
48#ifndef IGL_STATIC_LIBRARY
49# include "march_cube.cpp"
50#endif
51
52#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void march_cube(const DerivedGV &GV, const Eigen::Matrix< Scalar, 8, 1 > &cS, const Eigen::Matrix< Index, 8, 1 > &cI, const Scalar &isovalue, Eigen::PlainObjectBase< DerivedV > &V, Index &n, Eigen::PlainObjectBase< DerivedF > &F, Index &m, std::unordered_map< int64_t, int > &E2V)
Process a single cube of a marching cubes grid.