]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/tui_quadrangle.rst
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/hexablock.git] / doc / tui_quadrangle.rst
1 :tocdepth: 3
2
3
4 .. _tuiquadrangles:
5
6 ===========
7 Quadrangles
8 ===========
9
10 Manage the quadrangles of the document.
11
12 Add a quadrangle in the document::
13
14     quad_1 = doc.addQuad(edge_1, edge_2, edge_3, edge_4)
15     quad_2 = doc.addQuadVertices(vertex_1, vertex_2, vertex_3, vertex_4)
16
17 Notice: the vertices and edges follow the outline of the quadrangle.
18
19 Get the number of all quadrangles of the document::
20
21     sum_a = doc.countQuad()
22
23 Get the number of used quadrangles in the model of blocks::
24
25     sum_u = doc.countUsedQuad()
26
27 Get a quadrangle of the document::
28
29     quad_i = doc.getQuad(i)
30
31 Get an edge of a quadrangle::
32
33     edge_e = quad_i.getEdge(0 or 1 or 2 or 3)
34
35 Get a vertex of a quadrangle::
36  
37     vertex_v = quad_i.getVertex(0 or 1 or 2 or 3)
38  
39 Find a quadrangle in the document::
40  
41     quad_f = doc.findQuad(vertex_1, vertex_2)
42
43 GUI command: :ref:`guiquadrangles`