Cone_14 = model.addCone(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), model.selection("EDGE", "PartSet/OZ"), 10., 10., 15.)
Cone_15 = model.addCone(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), model.selection("EDGE", "PartSet/OZ"), "baseRadius", "topRadius", "h")
+Cone_16 = model.addCone(Part_1_doc, 5., 10., 15.)
+Cone_16.setRadius(10., 15.)
+
model.do()
model.end()
model.testNbSubShapes(Cone_15, GeomAPI_Shape.FACE, [3])
model.testHaveNamingFaces(Cone_15, model, Part_1_doc)
+model.testNbResults(Cone_16, 1)
+model.testNbSubResults(Cone_16, [0])
+model.testNbSubShapes(Cone_16, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Cone_16, GeomAPI_Shape.FACE, [3])
+model.testHaveNamingFaces(Cone_16, model, Part_1_doc)
+
model.testNbResults(Cone_4, 0)
assert(Cone_4.feature().error() == "Cone builder :: base radius is negative.")
Sphere_5 = model.addSphere(Part_1_doc, Point_2, 10)
Sphere_6 = model.addSphere(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), "r")
+Sphere_7 = model.addSphere(Part_1_doc, 10)
+Sphere_7.setCenterPoint(Point_1)
+
model.do()
model.end()
model.testNbSubResults(Sphere_6, [0])
model.testNbSubShapes(Sphere_6, GeomAPI_Shape.SOLID, [1])
model.testNbSubShapes(Sphere_6, GeomAPI_Shape.FACE, [1])
-model.testHaveNamingFaces(Sphere_4, model, Part_1_doc)
+model.testHaveNamingFaces(Sphere_6, model, Part_1_doc)
+
+model.testNbResults(Sphere_7, 1)
+model.testNbSubResults(Sphere_7, [0])
+model.testNbSubShapes(Sphere_7, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Sphere_7, GeomAPI_Shape.FACE, [1])
+model.testHaveNamingFaces(Sphere_7, model, Part_1_doc)
model.testNbResults(Sphere_2, 0)
assert(Sphere_2.feature().error() == "Sphere builder :: radius is negative or null.")
Torus_9 = model.addTorus(Part_1_doc, Point_2, model.selection("EDGE", "PartSet/OZ"), 15, 4)
Torus_10 = model.addTorus(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), Axis_2, 15, 4)
Torus_11 = model.addTorus(Part_1_doc, model.selection("VERTEX", "PartSet/Origin"), model.selection("EDGE", "PartSet/OZ"), "r", "ring")
+Torus_12 = model.addTorus(Part_1_doc, 15, 4)
model.do()
model.end()
model.testNbSubShapes(Torus_11, GeomAPI_Shape.FACE, [1])
model.testHaveNamingFaces(Torus_11, model, Part_1_doc)
+model.testNbResults(Torus_12, 1)
+model.testNbSubResults(Torus_12, [0])
+model.testNbSubShapes(Torus_12, GeomAPI_Shape.SOLID, [1])
+model.testNbSubShapes(Torus_12, GeomAPI_Shape.FACE, [1])
+model.testHaveNamingFaces(Torus_12, model, Part_1_doc)
+
model.testNbResults(Torus_2, 0)
assert(Torus_2.feature().error() == "Torus builder :: ring radius is greater than the radius.")