mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 22:21:59 +08:00
Fix CGAL exception preventing preview generation fallback
SPE-1617
This commit is contained in:
parent
59552a8aee
commit
95d3a2b2ec
@ -199,7 +199,13 @@ void SLAPrint::Steps::generate_preview(SLAPrintObject &po, SLAPrintObjectStep st
|
||||
m = csgmesh_merge_positive_parts(r);
|
||||
handled = true;
|
||||
} else if (csg::check_csgmesh_booleans(r) == r.end()) {
|
||||
auto cgalmeshptr = csg::perform_csgmesh_booleans(r);
|
||||
MeshBoolean::cgal::CGALMeshPtr cgalmeshptr;
|
||||
try {
|
||||
cgalmeshptr = csg::perform_csgmesh_booleans(r);
|
||||
} catch (...) {
|
||||
// leaves cgalmeshptr as nullptr
|
||||
}
|
||||
|
||||
if (cgalmeshptr) {
|
||||
m = MeshBoolean::cgal::cgal_to_indexed_triangle_set(*cgalmeshptr);
|
||||
handled = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user