[vtkusers] Color by curvature in python
Pappu Kumar
papuu_k at yahoo.com
Wed Jul 4 13:08:53 EDT 2012
I am trying to color a set of (x,y,z) coordinates by curvature. My code so far is as follows:
from pylab import randn
#generate data
data=randn(300).reshape(3,100)
#x,y,z coordinates
x=data[0:1]
y=data[1:2]
z=data[2:3]
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:
http://www.cmake.org/Wiki/VTK/Examples/Python/CurvaturesDemo
Thank you very much for your kind help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120705/5af6bfed/attachment.htm>
More information about the vtkusers
mailing list