mirror of https://github.com/vitalif/openscad
#337 Print warning on non-simple export instead of refusing to export
parent
f15a177132
commit
cfb15466e4
|
@ -246,7 +246,7 @@ static void export_stl(const CGAL_Polyhedron &P, std::ostream &output)
|
||||||
void export_stl(const CGAL_Nef_polyhedron *root_N, std::ostream &output)
|
void export_stl(const CGAL_Nef_polyhedron *root_N, std::ostream &output)
|
||||||
{
|
{
|
||||||
if (!root_N->p3->is_simple()) {
|
if (!root_N->p3->is_simple()) {
|
||||||
PRINT("Object isn't a valid 2-manifold! Modify your design.\n");
|
PRINT("Warning: Exported object may not be a valid 2-manifold and may need repair");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool usePolySet = true;
|
bool usePolySet = true;
|
||||||
|
|
|
@ -1792,9 +1792,7 @@ void MainWindow::actionExport(export_type_e, QString, QString)
|
||||||
|
|
||||||
const CGAL_Nef_polyhedron *N = dynamic_cast<const CGAL_Nef_polyhedron *>(this->root_geom.get());
|
const CGAL_Nef_polyhedron *N = dynamic_cast<const CGAL_Nef_polyhedron *>(this->root_geom.get());
|
||||||
if (N && !N->p3->is_simple()) {
|
if (N && !N->p3->is_simple()) {
|
||||||
PRINT("Object isn't a valid 2-manifold! Modify your design. See http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export");
|
PRINT("Warning: Object may not be a valid 2-manifold and may need repair! See http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export");
|
||||||
clearCurrentOutput();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString title = QString("Export %1 File").arg(type_name);
|
QString title = QString("Export %1 File").arg(type_name);
|
||||||
|
|
Loading…
Reference in New Issue