mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
WIP: Added a circle cursor and naive logic to select triangles inside
Deselection is possible when holding shift Triangles obscured by the mesh are selected nonetheless (so far)
This commit is contained in:
parent
08daddb5de
commit
2e71dcefc3
4 changed files with 141 additions and 23 deletions
|
@ -113,6 +113,9 @@ public:
|
|||
: m_emesh(mesh)
|
||||
{}
|
||||
|
||||
void line_from_mouse_pos(const Vec2d& mouse_pos, const Transform3d& trafo, const Camera& camera,
|
||||
Vec3d& point, Vec3d& direction) const;
|
||||
|
||||
// Given a mouse position, this returns true in case it is on the mesh.
|
||||
bool unproject_on_mesh(
|
||||
const Vec2d& mouse_pos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue