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 box2 = shaperpy.makeBox(10.,10.,10.)
15 centerPoint = pnt(20.,20.,0.)
20 # Perfom a scale by a factor.
22 scale1 = shaperpy.makeScale(box1,centerPoint, -1.6)
27 # Perfom a scale by dimensions.
29 scale2 = shaperpy.makeScale(box2,centerPoint, 2, -0.5, 1.3)