RobotExampleTrajectoryOutOfShapes.py
Go to the documentation of this file.00001
00002
00003
00004 count = 0
00005 FirstPos1 = None
00006 FirstPos2 = None
00007 LastPos2 = None
00008 SortedEdgeList = []
00009 for so in Gui.Selection.getSelectionEx():
00010 for edge in obj.SubObjects:
00011 if edge.Type != 'Part::TopoShape':continue
00012 pos1 = edge.valueAt(0)
00013 pos2 = edge.valueAt(edge.Length)
00014 print pos1,pos2
00015 if count==0:
00016 FirstPos1 = pos1
00017 FirstPos2 = pos2
00018 elif count==1 :
00019 continue
00020 else:
00021 SortedEdgeList.append( (pos1,pos2,edge) )