1 # Copyright (C) 2020-2021 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 if __name__ == "__main__":
21 Part_1 = locals()["Part_1"]
22 model.testNbResults(Part_1, 1)
23 model.testNbSubResults(Part_1, [0])
24 model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1])
25 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [20])
26 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [104])
27 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [208])
28 model.testResultsVolumes(Part_1, [937708.6935593])
30 Part_2 = locals()["Part_2"]
31 model.testNbResults(Part_2, 1)
32 model.testNbSubResults(Part_2, [0])
33 model.testNbSubShapes(Part_2, GeomAPI_Shape.SOLID, [1])
34 model.testNbSubShapes(Part_2, GeomAPI_Shape.FACE, [12])
35 model.testNbSubShapes(Part_2, GeomAPI_Shape.EDGE, [60])
36 model.testNbSubShapes(Part_2, GeomAPI_Shape.VERTEX, [120])
37 model.testResultsVolumes(Part_2, [256665.8235477])
39 Part_3 = locals()["Part_3"]
40 model.testNbResults(Part_3, 1)
41 model.testNbSubResults(Part_3, [0])
42 model.testNbSubShapes(Part_3, GeomAPI_Shape.SOLID, [1])
43 model.testNbSubShapes(Part_3, GeomAPI_Shape.FACE, [12])
44 model.testNbSubShapes(Part_3, GeomAPI_Shape.EDGE, [60])
45 model.testNbSubShapes(Part_3, GeomAPI_Shape.VERTEX, [120])
46 model.testResultsVolumes(Part_3, [2719045.0529109])
48 Part_4 = locals()["Part_4"]
49 model.testNbResults(Part_4, 1)
50 model.testNbSubResults(Part_4, [0])
51 model.testNbSubShapes(Part_4, GeomAPI_Shape.SOLID, [1])
52 model.testNbSubShapes(Part_4, GeomAPI_Shape.FACE, [6])
53 model.testNbSubShapes(Part_4, GeomAPI_Shape.EDGE, [24])
54 model.testNbSubShapes(Part_4, GeomAPI_Shape.VERTEX, [48])
55 model.testResultsVolumes(Part_4, [534313.7153742])
57 Part_5 = locals()["Part_5"]
58 model.testNbResults(Part_5, 1)
59 model.testNbSubResults(Part_5, [0])
60 model.testNbSubShapes(Part_5, GeomAPI_Shape.SOLID, [1])
61 model.testNbSubShapes(Part_5, GeomAPI_Shape.FACE, [19])
62 model.testNbSubShapes(Part_5, GeomAPI_Shape.EDGE, [96])
63 model.testNbSubShapes(Part_5, GeomAPI_Shape.VERTEX, [192])
64 model.testResultsVolumes(Part_5, [1111187.2858512])
66 Part_6 = locals()["Part_6"]
67 model.testNbResults(Part_6, 1)
68 model.testNbSubResults(Part_6, [0])
69 model.testNbSubShapes(Part_6, GeomAPI_Shape.SOLID, [1])
70 model.testNbSubShapes(Part_6, GeomAPI_Shape.FACE, [12])
71 model.testNbSubShapes(Part_6, GeomAPI_Shape.EDGE, [60])
72 model.testNbSubShapes(Part_6, GeomAPI_Shape.VERTEX, [120])
73 model.testResultsVolumes(Part_6, [124567.8141964])
75 Part_7 = locals()["Part_7"]
76 model.testNbResults(Part_7, 1)
77 model.testNbSubResults(Part_7, [0])
78 model.testNbSubShapes(Part_7, GeomAPI_Shape.SOLID, [1])
79 model.testNbSubShapes(Part_7, GeomAPI_Shape.FACE, [12])
80 model.testNbSubShapes(Part_7, GeomAPI_Shape.EDGE, [60])
81 model.testNbSubShapes(Part_7, GeomAPI_Shape.VERTEX, [120])
82 model.testResultsVolumes(Part_7, [3106355.9518294])
84 Part_8 = locals()["Part_8"]
85 model.testNbResults(Part_8, 1)
86 model.testNbSubResults(Part_8, [0])
87 model.testNbSubShapes(Part_8, GeomAPI_Shape.SOLID, [1])
88 model.testNbSubShapes(Part_8, GeomAPI_Shape.FACE, [6])
89 model.testNbSubShapes(Part_8, GeomAPI_Shape.EDGE, [24])
90 model.testNbSubShapes(Part_8, GeomAPI_Shape.VERTEX, [48])
91 model.testResultsVolumes(Part_8, [570471.5090269])
93 Part_9 = locals()["Part_9"]
94 model.testNbResults(Part_9, 1)
95 model.testNbSubResults(Part_9, [0])
96 model.testNbSubShapes(Part_9, GeomAPI_Shape.SOLID, [1])
97 model.testNbSubShapes(Part_9, GeomAPI_Shape.FACE, [7])
98 model.testNbSubShapes(Part_9, GeomAPI_Shape.EDGE, [30])
99 model.testNbSubShapes(Part_9, GeomAPI_Shape.VERTEX, [60])
100 model.testResultsVolumes(Part_9, [1688917.3777022])
102 Part_10 = locals()["Part_10"]
103 model.testNbResults(Part_10, 1)
104 model.testNbSubResults(Part_10, [0])
105 model.testNbSubShapes(Part_10, GeomAPI_Shape.SOLID, [1])
106 model.testNbSubShapes(Part_10, GeomAPI_Shape.FACE, [10])
107 model.testNbSubShapes(Part_10, GeomAPI_Shape.EDGE, [48])
108 model.testNbSubShapes(Part_10, GeomAPI_Shape.VERTEX, [96])
109 model.testResultsVolumes(Part_10, [6604147.6151849])