# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
print("-------------------------- compute box")
ret = mesh.Compute()
print(ret)
+if not ret:
+ raise Exception("Error when computing Mesh")
+
log = mesh.GetLog(0); # no erase trace
# for linelog in log:
# print(linelog)