#include "peal_outer_hull_layers.h" #include "outer_hull.h" #include "writePLY.h" #include #include //#define IGL_PEAL_OUTER_HULL_LAYERS_DEBUG template < typename DerivedV, typename DerivedF, typename Derivedodd, typename Derivedflip> IGL_INLINE void igl::peal_outer_hull_layers( const Eigen::PlainObjectBase & V, const Eigen::PlainObjectBase & F, Eigen::PlainObjectBase & odd, Eigen::PlainObjectBase & flip) { using namespace Eigen; using namespace std; typedef typename DerivedF::Index Index; typedef Matrix MatrixXF; typedef Matrix MatrixXI; typedef Matrix MatrixXflip; const Index m = F.rows(); #ifdef IGL_PEAL_OUTER_HULL_LAYERS_DEBUG cout<<"peal outer hull layers..."< 0) { assert(Fr.rows() == IM.rows()); // Compute outer hull of current Fr MatrixXF Fo; MatrixXI Jo; MatrixXflip flipr; #ifdef IGL_PEAL_OUTER_HULL_LAYERS_DEBUG cout<<"calling outer hull..."< in_outer(Fr.rows(),false); for(Index g = 0;g, Eigen::Matrix, Eigen::Matrix, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&); #endif