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