SLA support points generator now uses precalculated aabb tree

This commit is contained in:
Lukas Matena 2019-02-04 09:50:25 +01:00
parent d32d0a7636
commit 24a0fdb844
4 changed files with 20 additions and 19 deletions

View file

@ -163,6 +163,7 @@ EigenMesh3D::query_ray_hit(const Vec3d &s, const Vec3d &dir) const
hit_result ret(*this);
ret.m_t = double(hit.t);
ret.m_dir = dir;
ret.m_source = s;
if(!std::isinf(hit.t) && !std::isnan(hit.t)) ret.m_face_id = hit.id;
return ret;