1 # Copyright (C) 2014-201x CEA/DEN, EDF R&D
3 # File: TestAPI_Cylinder.py
5 # Author: Clarisse Genrault (CEA)
7 from GeomAlgoAPI import GeomAlgoAPI_ShapeAPI as shaperpy
8 from GeomAlgoAPI import GeomAlgoAPI_Exception as myExcept
9 from GeomAlgoAPI import GeomAlgoAPI_EdgeBuilder as edgeBuilder
10 from GeomAPI import GeomAPI_Pnt as pnt
12 aPoint = pnt(10.,5.,0.)
13 anEdge = edgeBuilder.line(1.,0.,0.)
17 cylinder1 = shaperpy.makeCylinder(5., 20.)
24 cylinder2 = shaperpy.makeCylinder(5., 20., 100.)
31 cylinder3 = shaperpy.makeCylinder(aPoint, anEdge, 5., 20.)
38 cylinder4 = shaperpy.makeCylinder(aPoint, anEdge, 5., 20., 180.)