MeshRaycaster class is now used in SLA gizmo when selecting by rectangle

This commit is contained in:
Lukas Matena 2019-09-17 14:14:26 +02:00
parent 3694bf3da9
commit 1dfd8a0e62
3 changed files with 63 additions and 70 deletions

View file

@ -100,8 +100,8 @@ public:
bool unproject_on_mesh(const Vec2d& mouse_pos, const Transform3d& trafo, const Camera& camera,
std::vector<Vec3f>* positions = nullptr, std::vector<Vec3f>* normals = nullptr) const;
std::vector<size_t> get_unobscured_idxs(const Transform3d& trafo, const Camera& camera,
const std::vector<Vec3f>& points) const;
std::vector<unsigned> get_unobscured_idxs(const Geometry::Transformation& trafo, const Camera& camera,
const std::vector<Vec3f>& points, std::function<bool(const Vec3f&)> fn_ignore_hit) const;
private:
// PIMPL wrapper around igl::AABB so I don't have to include the header-only IGL here