Remove model matrix from the viewer.

This commit is contained in:
Jérémie Dumas
2018-02-16 18:39:33 -05:00
parent 72bf6ddc87
commit a9d3ef9d06
8 changed files with 40 additions and 89 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ def mouse_down(viewer, a, b):
# Cast a ray in the view direction starting from the mouse position
fid = igl.eigen.MatrixXi([-1])
coord = igl.eigen.MatrixXd([viewer.current_mouse_x, viewer.core.viewport[3] - viewer.current_mouse_y])
hit = igl.unproject_onto_mesh(coord, viewer.core.view * viewer.core.model,
hit = igl.unproject_onto_mesh(coord, viewer.core.view,
viewer.core.proj, viewer.core.viewport, V, F, fid, bc)
if hit:
# paint hit red