Sphere selection added as an option for painting gizmos

This commit is contained in:
Lukas Matena 2020-09-30 17:01:51 +02:00
parent c696e6ec19
commit 1ca8120398
6 changed files with 103 additions and 10 deletions

View file

@ -17,6 +17,11 @@ enum class EnforcerBlockerType : int8_t;
// to recursively subdivide the triangles and make the selection finer.
class TriangleSelector {
public:
enum CursorType {
CIRCLE,
SPHERE
};
void set_edge_limit(float edge_limit);
// Create new object on a TriangleMesh. The referenced mesh must
@ -29,6 +34,7 @@ public:
const Vec3f& source, // camera position (mesh coords)
const Vec3f& dir, // direction of the ray (mesh coords)
float radius, // radius of the cursor
CursorType type, // current type of cursor
EnforcerBlockerType new_state); // enforcer or blocker?
// Get facets currently in the given state.
@ -127,6 +133,7 @@ protected:
Vec3f source;
Vec3f dir;
float radius_sqr;
CursorType type;
};
Cursor m_cursor;