check OCC-Version of HasErrors

This commit is contained in:
Joachim Schöberl 2020-06-02 08:51:51 +02:00
parent dc15e50956
commit 1d97367e30

View File

@ -236,6 +236,7 @@ namespace netgen
// Perform the operation
aBuilder.Perform();
// Check for the errors
#if OCC_VERSION_HEX >= 0x070000
if (aBuilder.HasErrors())
{
cout << "builder has errors" << endl;
@ -247,6 +248,7 @@ namespace netgen
// treatment of the warnings
;
}
#endif
// result of the operation
shape = aBuilder.Shape();
BuildFMap();