libigl v2.5.0
Loading...
Searching...
No Matches
marching_cubes.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) 2020 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_MARCHING_CUBES_H
9#define IGL_MARCHING_CUBES_H
10#include "igl_inline.h"
11
12#include <Eigen/Core>
13namespace igl
14{
28 template <
29 typename DerivedS,
30 typename DerivedGV,
31 typename DerivedV,
32 typename DerivedF>
34 const Eigen::MatrixBase<DerivedS> & S,
35 const Eigen::MatrixBase<DerivedGV> & GV,
36 const unsigned nx,
37 const unsigned ny,
38 const unsigned nz,
39 const typename DerivedS::Scalar isovalue,
40 Eigen::PlainObjectBase<DerivedV> &V,
41 Eigen::PlainObjectBase<DerivedF> &F);
49 template <
50 typename DerivedS,
51 typename DerivedGV,
52 typename DerivedGI,
53 typename DerivedV,
54 typename DerivedF>
56 const Eigen::MatrixBase<DerivedS> & S,
57 const Eigen::MatrixBase<DerivedGV> & GV,
58 const Eigen::MatrixBase<DerivedGI> & GI,
59 const typename DerivedS::Scalar isovalue,
60 Eigen::PlainObjectBase<DerivedV> &V,
61 Eigen::PlainObjectBase<DerivedF> &F);
62}
63
64#ifndef IGL_STATIC_LIBRARY
65# include "marching_cubes.cpp"
66#endif
67
68#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void marching_cubes(const Eigen::MatrixBase< DerivedS > &S, const Eigen::MatrixBase< DerivedGV > &GV, const unsigned nx, const unsigned ny, const unsigned nz, const typename DerivedS::Scalar isovalue, Eigen::PlainObjectBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedF > &F)
Performs marching cubes reconstruction on a grid defined by values, and points, and generates a mesh ...