Robot: Apply clang format

This commit is contained in:
wmayer
2023-09-11 10:10:04 +02:00
committed by wwmayer
parent 2b7d9b5541
commit e0ff39ccdf
9 changed files with 155 additions and 133 deletions

View File

@@ -5,18 +5,19 @@ import FreeCADGui as Gui
count = 0
FirstPos1 = None
FirstPos2 = None
LastPos2 = None
LastPos2 = None
SortedEdgeList = []
for so in Gui.Selection.getSelectionEx():
for edge in obj.SubObjects:
if edge.Type != 'Part::TopoShape':continue
pos1 = edge.valueAt(0)
pos2 = edge.valueAt(edge.Length)
print(pos1,pos2)
if count==0: # first edge
FirstPos1 = pos1
FirstPos2 = pos2
elif count==1 : # second edge
continue
else: # the rest
SortedEdgeList.append( (pos1,pos2,edge) )
for edge in obj.SubObjects:
if edge.Type != "Part::TopoShape":
continue
pos1 = edge.valueAt(0)
pos2 = edge.valueAt(edge.Length)
print(pos1, pos2)
if count == 0: # first edge
FirstPos1 = pos1
FirstPos2 = pos2
elif count == 1: # second edge
continue
else: # the rest
SortedEdgeList.append((pos1, pos2, edge))