![]() |
|
|
|
#1
|
|||
|
|||
|
is it easy to get the data from a outside source, like the 50x50 CSV file attached.
|
|
#2
|
|||
|
|||
|
If this isn't easy, then I don't know what is
Code:
import csv
height = [ [float(val) for val in row] for row in csv.reader(file('data.txt','rUb')) ]
|
|
#3
|
|||
|
|||
|
Thanks Again!
Is it easy to map the color to the height of the surface, like in the picture above. For example, the highest points have an RGB value of 1 0 0 and the lowest points have a value of 0 0 0, any height between has a value between those. |
|
#4
|
|||
|
|||
|
here are some examples of the cylinder
![]() ![]() ![]() the radius comes from a 2D matrix, one dimension being the points around the cylinder, the other being the points along the cylinder. |
|
#5
|
|||
|
|||
|
Hi,
I've attached a new version of the test script that generates colors based on the height. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|