model.testNbSubShapes(Translation_3, GeomAPI_Shape.EDGE, [0])
model.testNbSubShapes(Translation_3, GeomAPI_Shape.VERTEX, [1])
model.testResultsVolumes(Translation_3, [0])
+model.testResultsAreas(Translation_3, [0])
midPoint = Translation_3.defaultResult().shape().middlePoint()
assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
index += 1
model.testNbSubShapes(Translation_4, GeomAPI_Shape.EDGE, [1])
model.testNbSubShapes(Translation_4, GeomAPI_Shape.VERTEX, [2])
model.testResultsVolumes(Translation_4, [0])
+model.testResultsAreas(Translation_4, [0])
midPoint = Translation_4.defaultResult().shape().middlePoint()
assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
index += 1
model.testNbSubShapes(Translation_5, GeomAPI_Shape.EDGE, [2])
model.testNbSubShapes(Translation_5, GeomAPI_Shape.VERTEX, [4])
model.testResultsVolumes(Translation_5, [0])
+model.testResultsAreas(Translation_5, [0])
midPoint = Translation_5.defaultResult().shape().middlePoint()
assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
index += 1
model.testNbSubShapes(Translation_6, GeomAPI_Shape.FACE, [1])
model.testNbSubShapes(Translation_6, GeomAPI_Shape.EDGE, [4])
model.testNbSubShapes(Translation_6, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Translation_6, [109.154152964914914])
+model.testResultsVolumes(Translation_6, [0])
+model.testResultsAreas(Translation_6, [109.154152964914914])
midPoint = Translation_6.defaultResult().shape().middlePoint()
assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
index += 1
model.testNbSubShapes(Translation_7, GeomAPI_Shape.FACE, [2])
model.testNbSubShapes(Translation_7, GeomAPI_Shape.EDGE, [8])
model.testNbSubShapes(Translation_7, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Translation_7, [182.822012116])
+model.testResultsVolumes(Translation_7, [0])
+model.testResultsAreas(Translation_7, [182.822012116])
midPoint = Translation_7.defaultResult().shape().middlePoint()
assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
index += 1