To Add Point on Edge in the Main Menu select Repair - > Add Point on Edge.
This operation splits an edge in two new edges in accordance with the specified mode (by length or by parameter) and a value specifying the position of the point on edge (for example val =0.5; mode = by length). This operation is available in OCC Viewer only.
The Result will be a GEOM_Object.
TUI Command: geompy.DivideEdge(Shape, EdgeID, Value, IsByParameter)
True:
Value is treated as a curve parameter [0..1]False:
Value is treated as a length parameter [0..1]Arguments: Name + 1 Edge + 1 Value setting the position of the point according to one of the selected modes.
The difference between "by parameter" and "by length" modes becomes apparent on the edges with irregular parametrization (for example, b-splines which usually have irregular density by the length). For example, value 0.5 "by length" on such edge will produce the point in the middle of this edge (equidistant from both its ends); the same 0.5 value "by parameter" will result in the point situated closer to one of the ends (depending on the actual parametrization).
Example:
Our TUI Scripts provide you with useful examples of the use of Repairing Operations.