]> SALOME platform Git repositories - modules/geom.git/blobdiff - doc/salome/examples/inertia.py
Salome HOME
[PYTHON 3] 1st draft
[modules/geom.git] / doc / salome / examples / inertia.py
index a63608c12623a27533b2481663d9be0cc45c6a0c..cd8469825f1367a46e78bdcbb78c7481a2dee832 100644 (file)
@@ -9,9 +9,9 @@ geompy = geomBuilder.New(salome.myStudy)
 # create a box
 box = geompy.MakeBoxDXDYDZ(100,30,100)
 In = geompy.Inertia(box)
-print "\nInertia matrix of box 100x30x100:"
-print " (", In[0], ", ", In[1], ", ", In[2], ")"
-print " (", In[3], ", ", In[4], ", ", In[5], ")"
-print " (", In[6], ", ", In[7], ", ", In[8], ")"
-print "Main moments of inertia of box 100x30x100:"
-print " Ix = ", In[9], ", Iy = ", In[10], ", Iz = ", In[11]
+print("\nInertia matrix of box 100x30x100:")
+print(" (", In[0], ", ", In[1], ", ", In[2], ")")
+print(" (", In[3], ", ", In[4], ", ", In[5], ")")
+print(" (", In[6], ", ", In[7], ", ", In[8], ")")
+print("Main moments of inertia of box 100x30x100:")
+print(" Ix = ", In[9], ", Iy = ", In[10], ", Iz = ", In[11])