Salome HOME
ce4f7b8b0f5cd3cad4c32805959b7ff123ec72d2
[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 three ways to create an edge. In all cases the \b Result
9 will be a \b GEOM_Object (EDGE). 
10
11 Firstly, you can create a linear \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 The third case allows building edges of desired length on any existing
45 curve (selected existing edge). <b>Start Point</b> parameter is optional.
46 Any point can be selected for it, the new edge will begin at the end
47 of initial edge, close to the selected point. <b>Length</b> can exceed
48 the initial edge's length or be negative to extrapolate existing edge
49 along its curve (except bezier and b-spline curves).
50
51 <b>TUI Command:</b> <em>geompy.MakeEdgeOnCurveByLength(Edge, Length, StartPoint = None)</em><br>
52 <b>Arguments:</b> Name + 1 edge + Length + 1 Vertex
53 (StartPoint parameter is optional, it allows switching from one end of
54 initial edge to another. Length can exceed the initial edge's length or be negative).
55
56 \image html edge3.png "Create edge on curve"
57
58 <b>Example:</b>
59
60 \image html edgesn.png "Edge"
61
62 Our <b>TUI Scripts</b> provide you with useful examples of creation of 
63 \ref tui_creation_edge "Advanced Geometric Objects".
64
65 */