diff --git a/wrap/igl/smooth_field.h b/wrap/igl/smooth_field.h index 1cd942d3..34e514ca 100644 --- a/wrap/igl/smooth_field.h +++ b/wrap/igl/smooth_field.h @@ -34,10 +34,14 @@ #include //igl related stuff + #include #include #include + +#ifdef COMISO_FIELD #include +#endif namespace vcg { namespace tri { @@ -228,7 +232,7 @@ class FieldSmoother ScalarType alpha_soft, int Ndir) { - +#ifdef COMISO_FIELD assert((Ndir==2)||(Ndir==4)); Eigen::MatrixXi F; Eigen::MatrixXd V; @@ -258,6 +262,9 @@ class FieldSmoother mesh.face[i].PD1()=dir1*Norm1; mesh.face[i].PD2()=dir2*Norm2; } +#else + assert(0); +#endif } static void SmoothNPoly(MeshType &mesh, @@ -488,6 +495,7 @@ public: // if ((SParam.alpha_curv>0)|| // (SParam.sharp_thr>0)|| // (SParam.curv_thr>0)) + InitByCurvature(mesh,SParam.curvRing); SelectConstraints(mesh,SParam);