"seg in sec" is not the same as "seg in sec.allseg()"
Posted: Fri Dec 10, 2010 12:28 pm
I just realised there is some kind of subtle difference here in that "seg in sec.allseg()" seems to iterate over the edges of the section also, or something like that, I'm still trying to understand it.
so...
will produce a different result to
Can someone explain to me exactly what the difference is here? I thought that each section had X number of segments, each of which could be set.
I think that aside from the nodes at segment centres there are also the nodes at the edges, which are not accessed when using "for seg in sec" but are if "seg in sec.allseg()" is used, is this correct?
so...
Code: Select all
for seg in sec.allseg():
seg.diam=seg.diam*coefficient
Code: Select all
for seg in sec:
seg.diam=seg.diam*coefficient
I think that aside from the nodes at segment centres there are also the nodes at the edges, which are not accessed when using "for seg in sec" but are if "seg in sec.allseg()" is used, is this correct?