1 # Copyright (C) 2014-201x CEA/DEN, EDF R&D
3 # File: TestAPI_Scale.py
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
13 box1 = shaperpy.makeBox(10.,10.,10.)
14 centerPoint = pnt(20.,20.,0.)
19 # Perfom a scale by a factor.
21 scale1 = shaperpy.makeScale(box1,centerPoint, -1.6)