Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Tolerance
1 # Tolerance
2 
3 import salome
4 salome.salome_init()
5 import GEOM
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 
9 # create a box
10 box = geompy.MakeBoxDXDYDZ(100,30,100)
11 Toler = geompy.Tolerance(box)
12 print "\nBox 100x30x100 tolerance:"
13 print " Face min. tolerance: ", Toler[0]
14 print " Face max. tolerance: ", Toler[1]
15 print " Edge min. tolerance: ", Toler[2]
16 print " Edge max. tolerance: ", Toler[3]
17 print " Vertex min. tolerance: ", Toler[4]
18 print " Vertex max. tolerance: ", Toler[5]

Download this script