1 # Copyright (C) 2014-2016 CEA/DEN, EDF R&D
4 # Created: 16 Sept 2016
5 # Author: Clarisse Genrault (CEA)
7 from GeomAlgoAPI import GeomAlgoAPI_ShapeAPI as shaperpy
8 from GeomAlgoAPI import GeomAlgoAPI_Exception as myExcept
9 from GeomAPI import GeomAPI_Pnt as pnt
11 # Create a box with dimensions
13 box1 = shaperpy.makeBox(5.,15.,5.)
18 # Create a box with two points defining the diagonal
21 pnt2 = pnt(10.,10.,10.)
22 box2 = shaperpy.makeBox(pnt1,pnt2)
27 # Create a box with null dimensions
29 box3 = shaperpy.makeBox(0.,0.,0.)
34 # Create a box with negative dimensions
36 box4 = shaperpy.makeBox(-5.,15.,5.)
41 # Create a box with two same points
44 box5 = shaperpy.makeBox(pnt1,pnt1)