Merge pull request #700 from jdumas/viewer

Remove model matrix from the viewer.

Former-commit-id: 274dc2de45
This commit is contained in:
Alec Jacobson
2018-07-12 16:52:03 -04:00
committed by GitHub
9 changed files with 68 additions and 107 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(np.array([-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