3 \page tui_measurements_page Measurements
5 \section tui_min_distance Minimum Distance
10 from SMESH_mechanic import mesh as mesh1
11 from SMESH_test1 import mesh as mesh2
16 # compute min distance from mesh1 to the origin (not available yet)
17 smesh.MinDistance(mesh1)
19 # compute min distance from node 10 of mesh1 to the origin
20 smesh.MinDistance(mesh1, id1=10)
24 # compute min distance between nodes 10 and 20 of mesh1
25 smesh.MinDistance(mesh1, id1=10, id2=20)
27 mesh1.MinDistance(10, 20)
29 # compute min distance from element 100 of mesh1 to the origin (not available yet)
30 smesh.MinDistance(mesh1, id1=100, isElem1=True)
32 mesh1.MinDistance(100, isElem1=True)
34 # compute min distance between elements 100 and 200 of mesh1 (not available yet)
35 smesh.MinDistance(mesh1, id1=100, id2=200, isElem1=True, isElem2=True)
37 mesh1.MinDistance(100, 200, True, True)
39 # compute min distance from element 100 to node 20 of mesh1 (not available yet)
40 smesh.MinDistance(mesh1, id1=100, id2=20, isElem1=True)
42 mesh1.MinDistance(100, 20, True)
44 # compute min distance from mesh1 to mesh2 (not available yet)
45 smesh.MinDistance(mesh1, mesh2)
47 # compute min distance from node 10 of mesh1 to node 20 of mesh2
48 smesh.MinDistance(mesh1, mesh2, 10, 20)
50 # compute min distance from node 10 of mesh1 to element 200 of mesh2 (not available yet)
51 smesh.MinDistance(mesh1, mesh2, 10, 200, isElem2=True)
57 \section tui_bounding_box Bounding Box
62 from SMESH_mechanic import mesh as mesh1
63 from SMESH_test1 import mesh as mesh2
68 # compute bounding box for mesh1
71 # compute bounding box for list of nodes of mesh1
72 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381])
74 # compute bounding box for list of elements of mesh1
75 mesh1.BoundingBox([363, 364, 370, 371, 372, 373, 379, 380, 381], isElem=True)
77 # compute common bounding box of mesh1 and mesh2
78 smesh.BoundingBox([mesh1, mesh2])