Skip to content

Commit ab0231d

Browse files
committed
Fixed visualization dependencies
1 parent aed35fe commit ab0231d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/optimization/optimization_pybind.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ init_classes_pybind(pybind11::module& m)
135135
&OptimizationParameters::use_checkpoints)
136136
.def_readwrite("use_log", &OptimizationParameters::use_log);
137137

138+
#ifdef ENABLE_VISUALIZATION
138139
pybind11::class_<Viewer>(m, "Viewer").def(pybind11::init<>());
140+
#endif
139141

140142
pybind11::class_<Connectivity>(m, "Connectivity")
141143
.def(pybind11::init<>())
@@ -291,12 +293,12 @@ init_conformal_pybind(pybind11::module& m)
291293
"Create double mesh from FV",
292294
pybind11::call_guard<pybind11::scoped_ostream_redirect,
293295
pybind11::scoped_estream_redirect>());
294-
m.def("cpp_viewer", &cpp_viewer, "viewer mesh in libigl gui");
295296
m.def("overlay_mesh_to_VL",
296297
&overlay_mesh_to_VL<Scalar>,
297298
pybind11::call_guard<pybind11::scoped_ostream_redirect,
298299
pybind11::scoped_estream_redirect>());
299300
#ifdef ENABLE_VISUALIZATION
301+
m.def("cpp_viewer", &cpp_viewer, "viewer mesh in libigl gui");
300302
m.def("get_pt_mat", &get_pt_mat, "get pt_mat");
301303
m.def("get_edges", &get_edges, "get edges mesh");
302304
m.def("generate_mesh_viewer",

0 commit comments

Comments
 (0)