Cut gizmo: cut by line does not rely on mesh raycasters
This commit is contained in:
parent
496481e972
commit
ef26b1abeb
3 changed files with 28 additions and 40 deletions
|
@ -324,7 +324,7 @@ Vec3f MeshRaycaster::get_triangle_normal(size_t facet_idx) const
|
|||
}
|
||||
|
||||
void MeshRaycaster::line_from_mouse_pos(const Vec2d& mouse_pos, const Transform3d& trafo, const Camera& camera,
|
||||
Vec3d& point, Vec3d& direction) const
|
||||
Vec3d& point, Vec3d& direction)
|
||||
{
|
||||
Matrix4d modelview = camera.get_view_matrix().matrix();
|
||||
Matrix4d projection= camera.get_projection_matrix().matrix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue