added define to compile without comiso and use only polyvector field

This commit is contained in:
nico 2019-04-24 11:51:08 +10:00
parent 42b17bf904
commit 02e04e901a
1 changed files with 9 additions and 1 deletions

View File

@ -34,10 +34,14 @@
#include <vcg/complex/algorithms/mesh_to_matrix.h>
//igl related stuff
#include <igl/n_polyvector.h>
#include <igl/principal_curvature.h>
#include <igl/igl_inline.h>
#ifdef COMISO_FIELD
#include <igl/copyleft/comiso/nrosy.h>
#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);