mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Report failing union on holes instead of faulty input mesh.
This commit is contained in:
parent
a6f1c41b94
commit
f512892f6b
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,9 @@ void SLAPrint::Steps::drill_holes(SLAPrintObject &po)
|
||||||
holes_mesh.require_shared_vertices();
|
holes_mesh.require_shared_vertices();
|
||||||
if (!holes_mesh.is_manifold() || MeshBoolean::cgal::does_self_intersect(holes_mesh)) {
|
if (!holes_mesh.is_manifold() || MeshBoolean::cgal::does_self_intersect(holes_mesh)) {
|
||||||
MeshBoolean::self_union(holes_mesh);
|
MeshBoolean::self_union(holes_mesh);
|
||||||
|
|
||||||
|
if (MeshBoolean::cgal::does_self_intersect(holes_mesh))
|
||||||
|
throw std::runtime_error(L("Too much overlapping holes."));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue