From 7a6346d12814229f74779e59546745f136519790 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 27 Oct 2021 10:05:09 +0200 Subject: [PATCH] Construct supports using the trimmed mesh. To solve issues with supports within the cavity hanging in the air. This still doesn't solve the issue with undrilled holes. To solve issues with supports within the cavity hanging in the air. This still doesn't solve the issue with undrilled holes. --- src/libslic3r/SLAPrintSteps.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/SLAPrintSteps.cpp b/src/libslic3r/SLAPrintSteps.cpp index adec5735a82..fa7348781d8 100644 --- a/src/libslic3r/SLAPrintSteps.cpp +++ b/src/libslic3r/SLAPrintSteps.cpp @@ -559,7 +559,7 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po) if(po.m_config.supports_enable.getBool() || po.m_config.pad_enable.getBool()) { - po.m_supportdata.reset(new SLAPrintObject::SupportData(mesh)); + po.m_supportdata.reset(new SLAPrintObject::SupportData(po.get_mesh_to_print())); } } @@ -570,10 +570,8 @@ void SLAPrint::Steps::support_points(SLAPrintObject &po) // If supports are disabled, we can skip the model scan. if(!po.m_config.supports_enable.getBool()) return; - const TriangleMesh &mesh = po.get_mesh_to_slice(); - if (!po.m_supportdata) - po.m_supportdata.reset(new SLAPrintObject::SupportData(mesh)); + po.m_supportdata.reset(new SLAPrintObject::SupportData(po.get_mesh_to_print())); const ModelObject& mo = *po.m_model_object;