-## Copyright (C) 2018-20xx CEA/DEN, EDF R&D
-##
-## This library is free software; you can redistribute it and/or
-## modify it under the terms of the GNU Lesser General Public
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##
-## See http:##www.salome-platform.org/ or
-## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
-##
+# Copyright (C) 2018-2023 CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
from SketchAPI import *
# check fillings
REF_DATA = [(Filling_1, 719.149788883378505488508380949),
- (Filling_2, 910.894041506332769131404347718),
+ (Filling_2, 910.894525282186464210099074990),
(Filling_3, 719.149788883378505488508380949),
- (Filling_4, 910.894530912501409147807862610)]
+ (Filling_4, 911.056740330659408755309414119)]
for ref in REF_DATA:
model.testNbResults(ref[0], 1)
model.testNbSubResults(ref[0], [0])
model.testNbSubShapes(ref[0], GeomAPI_Shape.FACE, [1])
model.testNbSubShapes(ref[0], GeomAPI_Shape.EDGE, [4])
model.testNbSubShapes(ref[0], GeomAPI_Shape.VERTEX, [8])
- model.testResultsVolumes(ref[0], [ref[1]])
+ model.testResultsAreas(ref[0], [ref[1]])
model.end()