Allowed painting in the FDM supports, seam, and multi-material gizmo to only triangles not clipped by a clipping plane.

This commit is contained in:
Lukáš Hejl 2021-10-21 08:29:56 +02:00
parent fc5560aac2
commit d8a0d0523f
5 changed files with 95 additions and 46 deletions

View file

@ -53,6 +53,7 @@ public:
m_data[2] = norm_dir.z();
}
void set_offset(double offset) { m_data[3] = offset; }
double get_offset() const { return m_data[3]; }
Vec3d get_normal() const { return Vec3d(m_data[0], m_data[1], m_data[2]); }
bool is_active() const { return m_data[3] != DBL_MAX; }
static ClippingPlane ClipsNothing() { return ClippingPlane(Vec3d(0., 0., 1.), DBL_MAX); }