From 93c5f98d90c5b2455016fcaf0185c367d7e07b79 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 30 Aug 2016 15:02:28 +0200 Subject: [PATCH] export SelectFace to Python (useful to update timestamp of vsmesh) --- libsrc/visualization/vsmesh.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index efad74b0..36941988 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -3570,6 +3570,10 @@ DLL_HEADER void ExportMeshVis() { vsmesh.MouseMove(oldx, oldy, newx, newy, mode); })); + bp::def("SelectFace", FunctionPointer + ([] (int facenr) { + vsmesh.SetSelectedFace(facenr); + })); } BOOST_PYTHON_MODULE(libvisual) {