Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FreeCADGui.doCommand('import Path')
- FreeCADGui.doCommand('from PathScripts import PathUtils as pu')
- FreeCADGui.doCommand('sel = Gui.Selection.getSelectionEx()[0]')
- FreeCADGui.doCommand('subs = sel.SubObjects')
- FreeCADGui.doCommand('firstedge = subs[0]')
- FreeCADGui.doCommand('w = Part.Wire(subs)')
- FreeCADGui.doCommand('Side = "Left"')
- FreeCADGui.doCommand('radius = -6.0')
- FreeCADGui.doCommand('clockwise = True')
- FreeCADGui.doCommand('off = pu.SortPath(w,Side,radius,clockwise,firstedge)')
- FreeCADGui.doCommand('Part.show(off)')
- for o in off.Edges:
- FreeCAD.Console.PrintMessage(str(o.Curve)+"\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement