123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
- //
- // This Source Code Form is subject to the terms of the Mozilla Public License
- // v. 2.0. If a copy of the MPL was not distributed with this file, You can
- // obtain one at http://mozilla.org/MPL/2.0/.
- #ifndef IGL_BOUNDARY_FACES_H
- #define IGL_BOUNDARY_FACES_H
- #include "igl_inline.h"
- #ifndef IGL_NO_EIGEN
- # include <Eigen/Dense>
- #endif
- #include <vector>
- namespace igl
- {
- // BOUNDARY_FACES Determine boundary faces (edges) of tetrahedra (triangles)
- // stored in T
- //
- // Templates:
- // IntegerT integer-value: e.g. int
- // IntegerF integer-value: e.g. int
- // Input:
- // T tetrahedron (triangle) index list, m by 4 (3), where m is the number of tetrahedra
- // Output:
- // F list of boundary faces, n by 3 (2), where n is the number of boundary faces
- //
- //
- template <typename IntegerT, typename IntegerF>
- IGL_INLINE void boundary_faces(
- const std::vector<std::vector<IntegerT> > & T,
- std::vector<std::vector<IntegerF> > & F);
- #ifndef IGL_NO_EIGEN
- // Templates:
- // DerivedT integer-value: i.e. from MatrixXi
- // DerivedF integer-value: i.e. from MatrixXi
- template <typename DerivedT, typename DerivedF>
- IGL_INLINE void boundary_faces(
- const Eigen::PlainObjectBase<DerivedT>& T,
- Eigen::PlainObjectBase<DerivedF>& F);
- // Same as above but returns F
- template <typename DerivedT, typename Ret>
- Ret boundary_faces(
- const Eigen::PlainObjectBase<DerivedT>& T);
- #endif
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "boundary_faces.cpp"
- #endif
- #endif
|