<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I am trying to color a set of (x,y,z) coordinates by curvature. My code so far is as follows:</div><div><br></div>from pylab import randn<br><br>#generate data<br>data=randn(300).reshape(3,100)<br><br>#x,y,z coordinates<br>x=data[0:1]<br>y=data[1:2]<br>z=data[2:3]<br><br>Now I want to calculate the curvature at each point using vtk. However I could not understand how to do it even by reading this example:<br><br>http://www.cmake.org/Wiki/VTK/Examples/Python/CurvaturesDemo<br><br>Thank you very much for your kind help.<br></div></body></html>