I have a series of parts, most of which are compound objects. I would like to loop through each of these parent objects, and for each parent, loop through each child part within the parent compound object, and extract the vertexes. The reason I want to do this is because I need to append a 'nan' to a list of the x,y,z coords of these points, between each child object. This is because if I do not do this, and go to plot the points, you would get lines joining up different children objects that aren't always spatially connected.
Here is my code so far:
Code: Select all
sel = FreeCADGui.Selection.getSelection()
for o in sel:
print('Checking o:')
print(o)
comp = o.Shape
print(comp)
print(comp.Vertexes)
print(comp.Faces)
print(comp.Solids)
Cheers,
Chris