Macro Cut Line/it

Descrizione
Questa piccola macro taglia una linea, crea dei punti e dei segmenti bicolore della linea.

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