]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/Test/TestGeometryCalculation.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestGeometryCalculation.py
index a3e1f1ec24e3683ae8b67edd872458743b59d4d9..40e327afa7f92981fab515ba4e01f603d67682d5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2020  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
@@ -49,15 +49,15 @@ def test_Geometry_Calculation():
     Part_1_doc = Part_1.document()
     Import_1 = model.addImport(Part_1_doc,file_path)
     model.do()
-    
+
     myDelta = 1e-6
     Props = model.getGeometryCalculation(Part_1_doc,model.selection("SOLID", "box1_1"))
 
     print(" Geometry calculation:")
     print(" Wires length: ", Props[0])
     print(" Surface area: ", Props[1])
-    print(" Volume      : ", Props[2]) 
-    
+    print(" Volume      : ", Props[2])
+
     aReflength = 2400
     aReslength = Props[0]
     assert (math.fabs(aReslength - aReflength) < myDelta), "The surface is wrong: expected = {0}, real = {1}".format(aReflength, aReslength)
@@ -70,11 +70,11 @@ def test_Geometry_Calculation():
     aResVolume = Props[2]
     assert (math.fabs(aResVolume - aRefVolume) < myDelta), "The volume is wrong: expected = {0}, real = {1}".format(aRefVolume, aResVolume)
 
-    
+
 if __name__ == '__main__':
 
     test_Geometry_Calculation()
-        
+
     #=========================================================================
     # End of test
     #=========================================================================