Salome HOME
Merge from V5_1_main branch 24/11/2010
[modules/geom.git] / doc / salome / gui / GEOM / input / creating_edge.doc
1 /*!
2
3 \page create_edge_page Edge
4
5 To create an \b Edge, in the <b>Main Menu</b> select <b>New Entity >
6 Build > Edge</b>  
7
8 There are two ways to create an edge. In both cases the \b Result
9 will be a \b GEOM_Object (EDGE). 
10
11 Firstly, you can create an \b Edge by specifying two points (\b Point1 and
12 \b Point2), which are the first and the last vertices of the edge.
13
14 <b>TUI Command:</b> <em>geompy.MakeEdge(Vertex1, Vertex2)</em><br>
15 <b>Arguments:</b> Name + 2 vertices (Vertex1 and Vertex2 are
16 correspondingly the first and the last vertex of the edge).
17
18 \image html edge1.png "Create edge by two points"
19
20 Secondly, you can create an \b Edge by specifying a single wire.
21
22 In this mode the following use cases are possible:
23 - All edges that form the wire lie on the same geometrical curve
24 (i.e. curve(edge1) == curve(edge2)).
25 - The edges that form the wire lie on analytical curves of the same
26 type, for example, segments of line, arcs, etc. In this case, the
27 algorithm checks geometrical coincidence of these curves using
28 a certain tolerance. If the curves are coinciding in terms of the given
29 tolerance, the resulting edge is built as if on a single curve.
30 - The edges that form the wire have the same tangency in the connection
31 points. In this case the curves are interpolated by the single
32 b-spline curve with sufficient precision. The resulting edge will
33 be built on this curve. 
34
35 The case when the edges that form the wire have different tangency in
36 the connection points (sharp bend) is not processed.
37
38 <b>TUI Command:</b> <em>geompy.MakeEdgeWire(Wire, LinearTolerance, AngularTolerance)</em><br>
39 <b>Arguments:</b> Name + 1 wire + Linear Tolerance + Angular Tolerance
40 (tolerance values are used to check coincidence of the underlying curves).
41
42 \image html edge2.png "Create edge from wire"
43
44 <b>Example:</b>
45
46 \image html edgesn.png "Edge"
47
48 Our <b>TUI Scripts</b> provide you with useful examples of creation of 
49 \ref tui_creation_edge "Advanced Geometric Objects".
50
51 */