View Single Post
  #2  
Old 08-25-2009, 09:21 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I believe this is an issue with Python's integer division. When you divide an integer with another integer Python will return the nearest integer to the true value. To get a floating point value you must convert one of the values to a float. Try changing the code:
Code:
(index/intervals)
to:
Code:
(float(index)/intervals)
Reply With Quote