mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Added functions get_hit_pos, get_hit_normal, ready to implement intersect_ray
This commit is contained in:
parent
b6292247e8
commit
3694bf3da9
3 changed files with 41 additions and 19 deletions
|
@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue