Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelAPI / Test / Test2252.py
index 8df731fddacce043c0fcabcd730130ac97d11c9b..df32c1f857164a784b3796ae0d4c6e2dcc924771 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -61,8 +61,8 @@ model.end()
 assert(partSet.size("Parts") == 1)
 resShape = modelAPI_Result(partSet.object("Parts", 0)).shape()
 # height of extrusion 90 / 2 + translation 100
-assert(GeomAlgoAPI_ShapeTools_centreOfMass(resShape).x() == 145)
+assert(GeomAlgoAPI_ShapeTools.centreOfMass(resShape).x() == 145)
 # rotated
-assert(floor(GeomAlgoAPI_ShapeTools_centreOfMass(resShape).z()) == -30)
+assert(floor(GeomAlgoAPI_ShapeTools.centreOfMass(resShape).z()) == -30)
 
 assert(model.checkPythonDump())