Add update_{hfield,mesh,texture} methods to the passive viewer.

Fixes #812.
Fixes #958.
Fixes #965.

PiperOrigin-RevId: 548181282
Change-Id: I6eb0cd2ce52c66083e83dd08d69e0cfb4178dbba
This commit is contained in:
Saran Tunyasuvunakool
2023-07-14 11:42:55 -07:00
committed by Copybara-Service
parent b5bef1b639
commit 0ccfef7314
6 changed files with 153 additions and 55 deletions
+12
View File
@@ -154,6 +154,18 @@ PYBIND11_MODULE(_simulate, pymodule) {
simulate.uiloadrequest.fetch_sub(1);
},
py::call_guard<py::gil_scoped_release>())
.def(
"update_hfield",
[](SimulateWrapper& simulate, int hfieldid) {
simulate.UpdateHField(hfieldid);
},
py::call_guard<py::gil_scoped_release>())
.def(
"update_texture",
[](SimulateWrapper& simulate, int texid) {
simulate.UpdateTexture(texid);
},
py::call_guard<py::gil_scoped_release>())
.def_property(
"droploadrequest",