Skip to content

Commit 58bbd28

Browse files
committed
Fixed pybind rendering dependencies
1 parent 159cdd4 commit 58bbd28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/optimization/optimization_pybind.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
#include "area.hh"
3939
#include "conformal_ideal_delaunay/ConformalInterface.hh"
40-
#include "conformal_ideal_delaunay/Sampling.hh"
4140
#include "constraint.hh"
4241
#include "convergence.hh"
4342
#include "embedding.hh"
@@ -57,6 +56,10 @@
5756
#include "visualization.hh"
5857
#include <highfive/H5Easy.hpp>
5958

59+
#ifdef ENABLE_VISUALIZATION
60+
#include "conformal_ideal_delaunay/Sampling.hh"
61+
#endif
62+
6063
namespace CurvatureMetric {
6164

6265
#ifdef PYBIND
@@ -293,6 +296,7 @@ init_conformal_pybind(pybind11::module& m)
293296
&overlay_mesh_to_VL<Scalar>,
294297
pybind11::call_guard<pybind11::scoped_ostream_redirect,
295298
pybind11::scoped_estream_redirect>());
299+
#ifdef ENABLE_VISUALIZATION
296300
m.def("get_pt_mat", &get_pt_mat, "get pt_mat");
297301
m.def("get_edges", &get_edges, "get edges mesh");
298302
m.def("generate_mesh_viewer",
@@ -310,6 +314,7 @@ init_conformal_pybind(pybind11::module& m)
310314
"save viewer image to png",
311315
pybind11::call_guard<pybind11::scoped_ostream_redirect,
312316
pybind11::scoped_estream_redirect>());
317+
#endif
313318
}
314319

315320
void

0 commit comments

Comments
 (0)