// 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_COPYLEFT_TETGEN_MESH_TO_TETGENIO_H #define IGL_COPYLEFT_TETGEN_MESH_TO_TETGENIO_H #include "../../igl_inline.h" #ifndef TETLIBRARY # define TETLIBRARY #endif #include "tetgen.h" // Defined tetgenio, REAL #include #include namespace igl { namespace copyleft { namespace tetgen { // Load a vertex list and face list into a tetgenio object // Inputs: // V #V by 3 vertex position list // F #F list of polygon face indices into V (0-indexed) // Outputs: // in tetgenio input object // Returns true on success, false on error IGL_INLINE bool mesh_to_tetgenio( const std::vector > & V, const std::vector > & F, tetgenio & in); // Wrapper with Eigen types // Templates: // DerivedV real-value: i.e. from MatrixXd // DerivedF integer-value: i.e. from MatrixXi template IGL_INLINE bool mesh_to_tetgenio( const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F, tetgenio & in); } } } #ifndef IGL_STATIC_LIBRARY # include "mesh_to_tetgenio.cpp" #endif #endif