// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 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_NO_CORK #include "to_cork_mesh.h" template < typename DerivedV, typename DerivedF> IGL_INLINE void igl::boolean::to_cork_mesh( const Eigen::PlainObjectBase & V, const Eigen::PlainObjectBase & F, CorkTriMesh & mesh) { using namespace std; assert((F.cols() == 0 || F.cols() == 3) && "Facets should be triangles."); assert((V.cols() == 0 || V.cols() == 3) && "Vertices should be in 3D."); mesh.n_triangles = F.rows(); mesh.n_vertices = V.rows(); mesh.vertices = new double[mesh.n_vertices*3]; mesh.triangles = new uint[mesh.n_triangles*3]; for(size_t v = 0;v, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&, CorkTriMesh&); template void igl::boolean::to_cork_mesh, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&, CorkTriMesh&); #endif #endif