|
@@ -27,7 +27,7 @@ bool mouse_down(igl::Viewer& viewer, int button, int modifier)
|
|
|
// Cast a ray in the view direction starting from the mouse position
|
|
|
double x = viewer.current_mouse_x;
|
|
|
double y = viewer.core.viewport(3) - viewer.current_mouse_y;
|
|
|
- bool hit = unproject_onto_mesh(Vector2f(x,y),
|
|
|
+ bool hit = igl::unproject_onto_mesh(Vector2f(x,y),
|
|
|
F,
|
|
|
viewer.core.view * viewer.core.model,
|
|
|
viewer.core.proj,
|