mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 20:12:02 +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);
|
m = csgmesh_merge_positive_parts(r);
|
||||||
handled = true;
|
handled = true;
|
||||||
} else if (csg::check_csgmesh_booleans(r) == r.end()) {
|
} 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) {
|
if (cgalmeshptr) {
|
||||||
m = MeshBoolean::cgal::cgal_to_indexed_triangle_set(*cgalmeshptr);
|
m = MeshBoolean::cgal::cgal_to_indexed_triangle_set(*cgalmeshptr);
|
||||||
handled = true;
|
handled = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user