jeffwincek

edge appender 0.0.1

Dec 6th, 2011
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. edgeNum = 2
  2. xValEven = 0
  3. xValOdd = -4
  4. yVal = 0
  5. zVal = 1
  6. for i in range(1,10):
  7.         stringconstruct = 'a=[' + str(edgeNum) + ',(' + str(xValEven) + ',0,' + str(zVal)+ ')]'
  8.         eval('plg.polyAppend(' + stringconstruct + ')')
  9.         edgeNum = edgeNum + 1
  10.         zVal = zVal + 1
  11.         stringconstruct = 'a=[' + str(edgeNum) + ',(' + str(xValOdd) + ',0,' + str(zVal)+ ')]'
  12.         eval('plg.polyAppend(' + stringconstruct + ')')
  13.         edgeNum = edgeNum + 3
Advertisement
Add Comment
Please, Sign In to add comment