]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/tui_vertex.rst
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/hexablock.git] / doc / tui_vertex.rst
1 :tocdepth: 3
2
3 .. _tuivertex:
4
5 ========
6 Vertices
7 ========
8
9 Manage the vertices of the model of blocks of a document.
10
11
12 Add a new vertex of the model of blocks in the document::
13
14     vertex_1 = doc.addVertex(x, y, z)
15
16 Get the number of all vertices of the document::
17
18     sum_a = doc.countVertex()
19
20 Get the number of vertices used only by the model of blocks::
21
22     sum_u = doc.countUsedVertex()
23
24 Get a vertex of the document::
25
26     vertex_i = doc.getVertex(i)
27
28 Get the coordinates of a vertex::
29
30     x = vertex_i.getX()
31     y = vertex_i.getY()
32     z = vertex_i.getZ()
33
34 Set the coordinates of a vertex::
35
36     vertex_i.setX(x1)
37     vertex_i.setY(y1)
38     vertex_i.setZ(z1)
39
40 Find a vertex in the document (with a tolerance)::
41
42     vertex_f = doc.findVertex(x, y, z)
43
44
45 GUI command: :ref:`guivertex`