6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
10 box = geompy.MakeBoxDXDYDZ(100,30,100)
12 bb = geompy.BoundingBox(box)
13 print "\nBounding Box of box 100x30x100:"
14 print " Xmin = ", bb[0],
", Xmax = ", bb[1]
15 print " Ymin = ", bb[2],
", Ymax = ", bb[3]
16 print " Zmin = ", bb[4],
", Zmax = ", bb[5]
18 aBB = geompy.MakeBoundingBox(box)
20 geompy.addToStudy(box,
"box 100x30x100")
21 geompy.addToStudy(aBB,
"Bounding box of box 100x30x100")