5 =============================================
6 Associate the model of blocks to the geometry
7 =============================================
14 Associate to a vertex of the geometry::
16 vx.setAssociation(geom_object_vertex)
20 gov = vx.getAssociation()
22 Associate to an edge or a wire of the geometry::
24 l = edg.addAssociation(geom_object_1D, debut, val)
26 Get the associations::
28 edge_associations = edg.getAssociations()
30 Associate to a face or a shell of the geometry::
32 l = quad.addAssociation(geom_object_2D)
34 Give the association::
36 go2d = quad.getAssociations()
43 To associate an opened line to the geometry, the following data have
46 - the starting edge of the model of blocks: *mstart*
47 - the list of edges of the model of blocks: *mline*
48 - the starting edge of the geometry: *gstart*
49 - the curvilinear abscissa on the starting edge of the geometry: *pstart* (double)
50 - the list of edges of the geometry: *gline*
51 - the curvilinear abscissa on the last edge of the geometry: *pend*
53 The number of edges of the model of blocks to associate may be
54 different from the number of edges of the geometry.
56 Associate an opened line::
58 l = doc.associateOpenedLine(mstart, mline, gstart, pstart, gline, pend)
60 To associate a closed line to the geometry, the following data have
63 - the starting vertex of the model of blocks: *mfirst*
64 - the starting edge of the model of blocks: *mstart*
65 - the list of edges of the model of blocks: *mline*
66 - the starting edge of the geometry: *gstart*
67 - the curvilinear abscissa on the starting edge of the geometry: *pstart* (double)
68 - the list of edges of the geometry: *gline*
70 The number of edges of the model of blocks to associate may be
71 different from the number of edges of the geometry.
73 Associate a closed line::
75 l = doc.associateClosedLine(mfirst, mstart, mline, gstart, pstart, gline)
79 Note for face association
80 =========================
82 Face association (implicite or explicite) is not necessary for:
88 Only edges association (implicite) on segments or arcs of cirle is necessary.
90 The following example show a model of block on which there isn't faces association but only
91 implicite edges association on arcs of circle.
97 .. literalinclude:: test_doc/test_cone/test_cone.py
104 .. image:: _static/cone_mesh.png
111 GUI command: :ref:`guiassoquadtogeom`