Macro Cut Line

Description
This small macro cut a line and create a points, lines , two colours of line.



Use
Can be used from the Freecad macro editor.

If the macro is copied in the Python console, you can you can use it by:

4 : number cuts

createPoint : create points or not (0) (Defaut 1)

createLine : create line (>0) or not (0) (Defaut 0)

biColor : create line biColor (>0) or not (0) (Defaut 0)

you can change the default values in the macro.

with bisColor the lines on the original line is created by a white line red line white line .... the colors are modifiable in the code, line 19 and 22.

Script
Macro_cutLine.FCMacro

Links
this function use the function discretize the original code