[vtkusers] 3D density surface plot
    Marc Streit 
    streit.marc at gmx.at
       
    Tue May 31 11:20:34 EDT 2005
    
    
  
Hello,
i'm just beginning to work with VTK and i don't know which data type is 
most suitable for the problem.
The raw input data are basically two data vectors (parameters).
Making the xy-plot is no problem :)
But now the problem arrives:
I want to create a 3D density plot. First i have to discretize the data. 
   The result of that is a sort of 3D histogram.
In matlab it is easy. I create a zero matrix. Then i round the input 
values. On the element with the position (x,y) i increment the matrix 
element by a constant value (1).
The result of this is a density matrix. surf() gives then a nice color 
mapped density surface.
I don't know how to achieve this in VTK. :(
Which data set is most appropriate for that purpose? Structured Points? 
Rectlinear grid?
Example code would be great.
Please help!
Thanks in advance,
   Marc
    
    
More information about the vtkusers
mailing list