Salome HOME
Merge from V6_main 11/02/2013
[modules/smesh.git] / doc / salome / examples / measurements_ex02.py
1 # Bounding Box
2
3 import smesh
4 from SMESH_mechanic import mesh as mesh1
5 from SMESH_test1 import mesh as mesh2
6
7 mesh1.Compute()
8 mesh2.Compute()
9
10 # compute bounding box for mesh1
11 mesh1.BoundingBox()
12
13 # compute bounding box for list of nodes of mesh1
14 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381])
15
16 # compute bounding box for list of elements of mesh1
17 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381], isElem=True)
18
19 # compute common bounding box of mesh1 and mesh2
20 smesh.BoundingBox([mesh1, mesh2])
21
22 # etc...