Use number_of_parts for is_splittable

It's there, why not use it
This commit is contained in:
Sijmen Schoon 2019-03-29 01:27:20 +01:00 committed by bubnikv
parent 4a9e05194c
commit cd3cec3e45
4 changed files with 1 additions and 25 deletions

View file

@ -420,12 +420,6 @@ private:
TriangleMesh m_convex_hull;
Geometry::Transformation m_transformation;
// flag to optimize the checking if the volume is splittable
// -1 -> is unknown value (before first cheking)
// 0 -> is not splittable
// 1 -> is splittable
mutable int m_is_splittable{ -1 };
ModelVolume(ModelObject *object, const TriangleMesh &mesh) : mesh(mesh), m_type(ModelVolumeType::MODEL_PART), object(object)
{
if (mesh.stl.stats.number_of_facets > 1)