From b36adf7a8d1c94fde4a3efcd0e32e6b103cef7ec Mon Sep 17 00:00:00 2001 From: huxingyi Date: Sat, 17 Oct 2020 11:20:32 +0930 Subject: [PATCH] Force remeshed component as uncombinable In most cases, allowing remeshed components to do boolean operations will cause crash in CGAL. --- src/meshgenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index 06e0ee1a..85cda07c 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -893,8 +893,8 @@ CombineMode MeshGenerator::componentCombineMode(const std::map if (combineMode == CombineMode::Normal) { if (isTrueValueString(valueOfKeyInMapOrEmpty(*component, "inverse"))) combineMode = CombineMode::Inversion; - //if (componentRemeshed(component)) - // combineMode = CombineMode::Uncombined; + if (componentRemeshed(component)) + combineMode = CombineMode::Uncombined; if (combineMode == CombineMode::Normal) { if (ComponentLayer::Body != ComponentLayerFromString(valueOfKeyInMapOrEmpty(*component, "layer").toUtf8().constData())) { combineMode = CombineMode::Uncombined;