Added functions get_hit_pos, get_hit_normal, ready to implement intersect_ray

This commit is contained in:
Lukas Matena 2019-09-17 10:47:01 +02:00
parent b6292247e8
commit 3694bf3da9
3 changed files with 41 additions and 19 deletions

View file

@ -100,14 +100,14 @@ 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;
private:
// PIMPL wrapper around igl::AABB so I don't have to include the header-only IGL here
class AABBWrapper;
AABBWrapper* m_AABB_wrapper;
const TriangleMesh* m_mesh = nullptr;
};