}
//Compute triangulation
BRepMesh_IncrementalMesh aMesh( aCopyShape, lDeflection );
- aWriter.Write( aCopyShape, theFileName.c_str() );
-
+ if (!aWriter.Write( aCopyShape, theFileName.c_str())) {
+ theError = "STL Export failed";
+ return false;
+ }
return true;
}
catch( Standard_Failure )