mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
error message when CSG visualization fails
This commit is contained in:
parent
3161463e94
commit
d8728ec8fc
@ -974,6 +974,8 @@ namespace netgen
|
||||
{
|
||||
PrintMessage (1, "Calc Triangle Approximation");
|
||||
|
||||
try
|
||||
{
|
||||
// FindIdenticSurfaces (1e-6);
|
||||
|
||||
int ntlo = GetNTopLevelObjects();
|
||||
@ -1073,7 +1075,18 @@ namespace netgen
|
||||
tams->RemoveUnusedPoints ();
|
||||
PrintMessage (2, "Object ", i, " has ", tams->GetNT(), " triangles");
|
||||
}
|
||||
|
||||
}
|
||||
catch (exception)
|
||||
{
|
||||
cerr << "*************************************************************" << endl
|
||||
<< "**** out of memory problem in CSG visualization ****" << endl
|
||||
<< "**** Restart netgen, and disable ****" << endl
|
||||
<< "**** 'Draw Geometry' in Geometry -> CSG Options ****" << endl
|
||||
<< "**** before loading the geometry ****" << endl
|
||||
<< "**** meshing will still work ! ****" << endl
|
||||
<< "*************************************************************" << endl;
|
||||
exit(1);
|
||||
}
|
||||
Change();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user