Replaced the repeated application of Cursors (Sphere or Circle) in painting using 2D and 3D Capsules.

Previously, the Cursor (Sphere or Circle) was repeatedly applied between two mouse positions, creating brushstrokes with ripples on the edges between those mouse positions.
Now, a single capsule (3D or 2D) is applied between those mouse positions, which creates brushstrokes without these ripples.
This commit is contained in:
Lukáš Hejl 2021-11-15 12:53:51 +01:00
parent e898eda320
commit 7bb38840e1
6 changed files with 558 additions and 69 deletions

View file

@ -151,6 +151,9 @@ public:
Vec3f get_closest_point(const Vec3f& point, Vec3f* normal = nullptr) const;
// Given a point in mesh coords, the method returns the closest facet from mesh.
int get_closest_facet(const Vec3f &point) const;
Vec3f get_triangle_normal(size_t facet_idx) const;
private: