7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
10 import SMESH, SALOMEDS
11 from salome.smesh import smeshBuilder
12 smesh = smeshBuilder.New(salome.myStudy)
13 import salome_notebook
15 from SMESH_mechanic import mesh as mesh1
16 from SMESH_test1 import mesh as mesh2
21 # compute bounding box for mesh1
24 # compute bounding box for list of nodes of mesh1
25 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381])
27 # compute bounding box for list of elements of mesh1
28 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381], isElem=True)
30 # compute common bounding box of mesh1 and mesh2
31 smesh.BoundingBox([mesh1, mesh2])