chourouk
Mechanical
- Sep 15, 2016
- 41
Hi,
I have 4 vectors that contains edges, I want to create for each vector a set to apply a section.
The program with which I created the vectors is below:
edges1=[]
edges2=[]
edges3=[]
edges4=[]
for edge in p.edges:
i=edge.index
if i %(36)==0 or i %(36)==1 or i %(36)==34 or i % (36) == 35:
edges1.append(edge)
elif i%36 ==2 or i%36 ==3 or i%36 ==4 or i%36 ==31 or i%36 ==32 or i%36 ==33 :
edges2.append(edge)
elif i%36 ==5 or i%36 ==6 or i%36 ==7 or i%36 ==8 or i%36 ==27 or i%36 ==28 or i%36 ==29 or i%36 ==30:
edges3.append(edge)
else:
edges4.append(edge)
thanks for your help!
I have 4 vectors that contains edges, I want to create for each vector a set to apply a section.
The program with which I created the vectors is below:
edges1=[]
edges2=[]
edges3=[]
edges4=[]
for edge in p.edges:
i=edge.index
if i %(36)==0 or i %(36)==1 or i %(36)==34 or i % (36) == 35:
edges1.append(edge)
elif i%36 ==2 or i%36 ==3 or i%36 ==4 or i%36 ==31 or i%36 ==32 or i%36 ==33 :
edges2.append(edge)
elif i%36 ==5 or i%36 ==6 or i%36 ==7 or i%36 ==8 or i%36 ==27 or i%36 ==28 or i%36 ==29 or i%36 ==30:
edges3.append(edge)
else:
edges4.append(edge)
thanks for your help!