#ifndef IGL_NO_CORK #include "to_cork_mesh.h" template < typename DerivedV, typename DerivedF> IGL_INLINE void igl::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::to_cork_mesh, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&, CorkTriMesh&); #endif #endif