Salome HOME
0022362: EDF SMESH: Quadrangle (mapping) algorithm: enforced vortices
[modules/smesh.git] / doc / salome / examples / measurements_ex02.py
1 # Bounding Box
2
3
4 import salome
5 salome.salome_init()
6 import GEOM
7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
9
10 import SMESH, SALOMEDS
11 from salome.smesh import smeshBuilder
12 smesh =  smeshBuilder.New(salome.myStudy)
13 import salome_notebook
14
15 from SMESH_mechanic import mesh as mesh1
16 from SMESH_test1 import mesh as mesh2
17
18 mesh1.Compute()
19 mesh2.Compute()
20
21 # compute bounding box for mesh1
22 mesh1.BoundingBox()
23
24 # compute bounding box for list of nodes of mesh1
25 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381])
26
27 # compute bounding box for list of elements of mesh1
28 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381], isElem=True)
29
30 # compute common bounding box of mesh1 and mesh2
31 smesh.BoundingBox([mesh1, mesh2])
32
33 # etc...