/*! \page create_edge_page Edge To create an \b Edge, in the Main Menu select New Entity > Build > Edge There are three ways to create an edge. In all cases the \b Result will be a \b GEOM_Object (EDGE). Firstly, you can create a linear \b Edge by specifying two points (\b Point1 and \b Point2), which are the first and the last vertices of the edge. TUI Command: geompy.MakeEdge(Vertex1, Vertex2)
Arguments: Name + 2 vertices (Vertex1 and Vertex2 are correspondingly the first and the last vertex of the edge). \image html edge1.png "Create edge by two points" Secondly, you can create an \b Edge by specifying a single wire. In this mode the following use cases are possible: - All edges that form the wire lie on the same geometrical curve (i.e. curve(edge1) == curve(edge2)). - The edges that form the wire lie on analytical curves of the same type, for example, segments of line, arcs, etc. In this case, the algorithm checks geometrical coincidence of these curves using a certain tolerance. If the curves are coinciding in terms of the given tolerance, the resulting edge is built as if on a single curve. - The edges that form the wire have the same tangency in the connection points. In this case the curves are interpolated by the single b-spline curve with sufficient precision. The resulting edge will be built on this curve. The case when the edges that form the wire have different tangency in the connection points (sharp bend) is not processed. TUI Command: geompy.MakeEdgeWire(Wire, LinearTolerance, AngularTolerance)
Arguments: Name + 1 wire + Linear Tolerance + Angular Tolerance (tolerance values are used to check coincidence of the underlying curves). \image html edge2.png "Create edge from wire" The third case allows building edges of desired length on any existing curve (selected existing edge). Start Point parameter is optional. Any point can be selected for it, the new edge will begin at the end of initial edge, close to the selected point. Length can exceed the initial edge's length or be negative to extrapolate existing edge along its curve (except bezier and b-spline curves). TUI Command: geompy.MakeEdgeOnCurveByLength(Edge, Length, StartPoint = None)
Arguments: Name + 1 edge + Length + 1 Vertex (StartPoint parameter is optional, it allows switching from one end of initial edge to another. Length can exceed the initial edge's length or be negative). \image html edge3.png "Create edge on curve" Example: \image html edgesn.png "Edge" Our TUI Scripts provide you with useful examples of creation of \ref tui_creation_edge "Advanced Geometric Objects". */