// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson // // 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_FACETS_H #define IGL_BOUNDARY_FACETS_H #include "igl_inline.h" #include #include namespace igl { // BOUNDARY_FACETS Determine boundary faces (edges) of tetrahedra (triangles) // stored in T (analogous to qptoolbox's `outline` and `boundary_faces`). // // 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 IGL_INLINE void boundary_facets( const std::vector > & T, std::vector > & F); // Templates: // DerivedT integer-value: i.e. from MatrixXi // DerivedF integer-value: i.e. from MatrixXi template IGL_INLINE void boundary_facets( const Eigen::PlainObjectBase& T, Eigen::PlainObjectBase& F); // Same as above but returns F template Ret boundary_facets( const Eigen::PlainObjectBase& T); } #ifndef IGL_STATIC_LIBRARY # include "boundary_facets.cpp" #endif #endif