Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestPartitionSubCompsolidWithCompSolid2.py
index 38b4094d2b79b0a91f0aecb9801949963c4407bd..8207930311c3c9914d3f236a94e7afe80d7ede8f 100644 (file)
@@ -1,22 +1,21 @@
-## 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) 2014-2023  CEA, EDF
+#
+# 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 salome.shaper import model
 from GeomAPI import *
@@ -40,14 +39,15 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Left"), mo
 Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Back"), model.selection("FACE", "Box_1_1/Front"))
 Partition_1_objects = [model.selection("SOLID", "Box_1_1"), model.selection("FACE", "Plane_1"), model.selection("FACE", "Plane_2")]
 Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects)
-Partition_2 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1_2"), model.selection("SOLID", "Partition_1_1_1"), model.selection("SOLID", "Partition_1_1_3")])
+Partition_2_objects = [model.selection("SOLID", "Extrusion_1_1_2"), model.selection("SOLID", "Partition_1_1_1"), model.selection("SOLID", "Partition_1_1_3")]
+Partition_2 = model.addPartition(Part_1_doc, Partition_2_objects)
 model.do()
 
 # check partition
 model.testNbResults(Partition_2, 1)
 model.testNbSubResults(Partition_2, [8])
 model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [8])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [55])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [57])
 model.testResultsVolumes(Partition_2, [82157.197962275837198831140995026])
 
 # change box height and check partition
@@ -57,7 +57,7 @@ model.do()
 model.testNbResults(Partition_2, 1)
 model.testNbSubResults(Partition_2, [9])
 model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [9])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [70])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [76])
 model.testResultsVolumes(Partition_2, [146157.197962169535458087921142578])
 
 # update extrusion and check partition
@@ -68,7 +68,7 @@ model.do()
 model.testNbResults(Partition_2, 1)
 model.testNbSubResults(Partition_2, [10])
 model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [10])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [85])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [95])
 model.testResultsVolumes(Partition_2, [146157.197962103120516985654830933])
 
 # change radius of a circle and check partition
@@ -78,7 +78,7 @@ model.do()
 model.testNbResults(Partition_2, 1)
 model.testNbSubResults(Partition_2, [11])
 model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [11])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [86])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [98])
 model.testResultsVolumes(Partition_2, [156418.58182917608064599335193634])
 
 # check naming