diff --git a/.travis.yml b/.travis.yml index 156dff070..b90fcf32f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,12 @@ matrix: - git submodule update --init --recursive - mkdir external/nanogui/ext/glfw/include/GL - wget -P external/nanogui/ext/glfw/include/GL http://www.opengl.org/registry/api/GL/glcorearb.h + - cd python + - mkdir build + - cd build + - cmake ../ + - make -j 2 + - cd ../../ - cd tutorial - mkdir build - cd build @@ -40,6 +46,12 @@ matrix: - brew upgrade cmake - brew upgrade cgal - git submodule update --init --recursive + - cd python + - mkdir build + - cd build + - cmake ../ + - make -j 2 + - cd ../../ - cd tutorial - mkdir build - cd build diff --git a/include/igl/cross_field_missmatch.cpp b/include/igl/cross_field_missmatch.cpp index 7db8d68e3..fcf6f46fc 100644 --- a/include/igl/cross_field_missmatch.cpp +++ b/include/igl/cross_field_missmatch.cpp @@ -19,7 +19,7 @@ #include namespace igl { - template + template class MissMatchCalculator { public: @@ -93,7 +93,7 @@ public: igl::triangle_triangle_adjacency(F,TT,TTi); } - inline void calculateMissmatch(Eigen::PlainObjectBase &Handle_MMatch) + inline void calculateMissmatch(Eigen::PlainObjectBase &Handle_MMatch) { Handle_MMatch.setConstant(F.rows(),3,-1); for (size_t i=0;i +template IGL_INLINE void igl::cross_field_missmatch(const Eigen::PlainObjectBase &V, const Eigen::PlainObjectBase &F, const Eigen::PlainObjectBase &PD1, const Eigen::PlainObjectBase &PD2, const bool isCombed, - Eigen::PlainObjectBase &missmatch) + Eigen::PlainObjectBase &missmatch) { DerivedV PD1_combed; DerivedV PD2_combed; @@ -128,7 +128,7 @@ IGL_INLINE void igl::cross_field_missmatch(const Eigen::PlainObjectBase sf(V, F, PD1_combed, PD2_combed); + igl::MissMatchCalculator sf(V, F, PD1_combed, PD2_combed); sf.calculateMissmatch(missmatch); } diff --git a/include/igl/cross_field_missmatch.h b/include/igl/cross_field_missmatch.h index 3f62439b9..9d7a7599d 100644 --- a/include/igl/cross_field_missmatch.h +++ b/include/igl/cross_field_missmatch.h @@ -28,13 +28,13 @@ namespace igl // across all face edges // - template + template IGL_INLINE void cross_field_missmatch(const Eigen::PlainObjectBase &V, const Eigen::PlainObjectBase &F, const Eigen::PlainObjectBase &PD1, const Eigen::PlainObjectBase &PD2, const bool isCombed, - Eigen::PlainObjectBase &missmatch); + Eigen::PlainObjectBase &missmatch); } #ifndef IGL_STATIC_LIBRARY #include "cross_field_missmatch.cpp" diff --git a/include/igl/find_cross_field_singularities.cpp b/include/igl/find_cross_field_singularities.cpp index 62247fcd2..3c7628c15 100644 --- a/include/igl/find_cross_field_singularities.cpp +++ b/include/igl/find_cross_field_singularities.cpp @@ -68,13 +68,9 @@ IGL_INLINE void igl::find_cross_field_singularities(const Eigen::PlainObjectBase Eigen::PlainObjectBase &singularityIndex, bool isCombed) { - // Eigen::PlainObjectBase > Handle_MMatch; - // Eigen::PlainObjectBase > Handle_MMatch; - // Eigen::Matrix Handle_MMatch; Eigen::Matrix Handle_MMatch; - // Eigen::Matrix Handle_MMatch; - // Eigen::Matrix Handle_MMatch; - igl::cross_field_missmatch(V, F, PD1, PD2, isCombed, Handle_MMatch); + + igl::cross_field_missmatch(V, F, PD1, PD2, isCombed, Handle_MMatch); igl::find_cross_field_singularities(V, F, Handle_MMatch, isSingularity, singularityIndex); } diff --git a/python/py_igl_viewer.cpp b/python/py_igl_viewer.cpp index 6f1dd3b9c..f221aa2a3 100644 --- a/python/py_igl_viewer.cpp +++ b/python/py_igl_viewer.cpp @@ -145,7 +145,6 @@ py::class_ viewercore_class(me, "ViewerCore"); .def("draw",&igl::viewer::ViewerCore::draw) .def("draw_buffer",&igl::viewer::ViewerCore::draw_buffer) - .def_readwrite("textrenderer",&igl::viewer::ViewerCore::textrenderer) .def_readwrite("shininess",&igl::viewer::ViewerCore::shininess) .def_property("background_color",