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>
13#include <cstdint>
14namespace igl
15{
31 template <
32 typename DerivedGV,
33 typename Scalar,
34 typename Index,
35 typename DerivedV,
36 typename DerivedF>
38 const DerivedGV & GV,
39 const Eigen::Matrix<Scalar,8,1> & cS,
40 const Eigen::Matrix<Index,8,1> & cI,
41 const Scalar & isovalue,
42 Eigen::PlainObjectBase<DerivedV> &V,
43 Index & n,
44 Eigen::PlainObjectBase<DerivedF> &F,
45 Index & m,
46 std::unordered_map<std::int64_t,int> & E2V);
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "march_cube.cpp"
51#endif
52
53#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
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< std::int64_t, int > &E2V)
Process a single cube of a marching cubes grid.