#include "flood_fill.h" #include IGL_INLINE void igl::flood_fill( const Eigen::RowVector3i & res, Eigen::VectorXd & S) { using namespace Eigen; using namespace std; const auto flood = [&res,&S] ( const int xi, const int yi, const int zi, const int signed_xi, const int signed_yi, const int signed_zi, const double s) { // flood fill this value back on this row for(int bxi = xi;signed_xi<--bxi;) { S(bxi+res(0)*(yi + res(1)*zi)) = s; } // flood fill this value back on any previous rows for(int byi = yi;signed_yi<--byi;) { for(int xi = 0;xi::quiet_NaN(); for(int zi = 0;zi