libigl v2.5.0
Loading...
Searching...
No Matches
tetrahedralized_grid.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_TETRAHEDRALIZED_GRID_H
9#define IGL_TETRAHEDRALIZED_GRID_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
36 template <
37 typename DerivedGV,
38 typename DerivedGT>
40 const int nx,
41 const int ny,
42 const int nz,
43 const TetrahedralizedGripType type,
44 Eigen::PlainObjectBase<DerivedGV> & GV,
45 Eigen::PlainObjectBase<DerivedGT> & GT);
48 template <
49 typename Derivedside,
50 typename DerivedGT>
52 const Eigen::MatrixBase<Derivedside> & side,
53 const TetrahedralizedGripType type,
54 Eigen::PlainObjectBase<DerivedGT> & GT);
55}
56#ifndef IGL_STATIC_LIBRARY
57# include "tetrahedralized_grid.cpp"
58#endif
59#endif
60
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void tetrahedralized_grid(const int nx, const int ny, const int nz, const TetrahedralizedGripType type, Eigen::PlainObjectBase< DerivedGV > &GV, Eigen::PlainObjectBase< DerivedGT > &GT)
Construct vertices of a regular grid, suitable for input to igl::marching_tets
TetrahedralizedGripType
Types of tetrahedralizations of a cubical cell.
Definition tetrahedralized_grid.h:16
@ TETRAHEDRALIZED_GRID_TYPE_6_ROTATIONAL
1 cube → 6 tets with rotatonal symmetry
Definition tetrahedralized_grid.h:20
@ NUM_TETRAHEDRALIZED_GRID_TYPE
Total number of tetrahedralization types.
Definition tetrahedralized_grid.h:22
@ TETRAHEDRALIZED_GRID_TYPE_5
1 cube → 5 tets
Definition tetrahedralized_grid.h:18