5252#include " shapes.hh"
5353#include " shear.hh"
5454#include " translation.hh"
55+
56+ #ifdef USE_HIGHFIVE
5557#include < highfive/H5Easy.hpp>
58+ #endif
5659
5760#ifdef RENDER_TEXTURE
5861 #include " conformal_ideal_delaunay/Sampling.hh"
@@ -394,6 +397,7 @@ init_parameterization_pybind(pybind11::module& m)
394397 pybind11::scoped_estream_redirect>());
395398}
396399
400+ #ifdef USE_HIGHFIVE
397401void save_simplify_overlay_input (std::string fname,
398402 std::vector<std::pair<int ,int >> endpoints,
399403 Eigen::MatrixXd V,
@@ -451,7 +455,7 @@ load_simplify_overlay_output(
451455
452456 return std::make_tuple (endpoints, V, F, uv, Fuv, cut_type, Vn_to_V);
453457}
454-
458+ # endif
455459
456460
457461// wrap as Python module
@@ -466,6 +470,7 @@ PYBIND11_MODULE(optimization_py, m)
466470 init_optimization_pybind (m);
467471 init_parameterization_pybind (m);
468472
473+ #ifdef USE_HIGHFIVE
469474 m.def (" save_simplify_overlay_input" ,
470475 &save_simplify_overlay_input,
471476 " Save simplify overlay mesh input to file" ,
@@ -476,6 +481,8 @@ PYBIND11_MODULE(optimization_py, m)
476481 " Load simplify overlay mesh output from file" ,
477482 pybind11::call_guard<pybind11::scoped_ostream_redirect,
478483 pybind11::scoped_estream_redirect>());
484+ #endif
485+
479486 m.def (" write_obj_with_uv" ,
480487 &write_obj_with_uv,
481488 " Write obj file with uv coordinates" ,
0 commit comments