<br>I&#39;m new to VTK, and I&#39;m trying to do something that I thought would be quite easy, since it&#39;s very basic. I have a list of data points in 3D space, each with an associated scalar value. My data set will be manually created, not read through a VTK reader class.<br>
<br>I want to display a 3D graph of this data, with color/opacity mappings.<br><br>Initially, I was planning to go the vtkImageData/vtkVolumeRayCastMapper route (which I saw in an example that produces a 3D graph similar to what I want to produce). However, manually creating a vtkImageData from 3D data implies transforming 3D arrays to 1D arrays, and this just looks too complicated and ugly for something that should be simple. So I thought that maybe I didn&#39;t have the right data set type, and that I should use a vtkStructuredGrid instead, since it is more along the lines of the data set I find myself with (a structured 3D space, plus I get to blank the cells I don&#39;t use, etc.). However, all documentation I&#39;ve read so far points to the fact that it is impossible to render a volume from a structured grid (?). I also can&#39;t find any method that allows to set data attributes in a structured grid, for the color mapping. vtkStructuredGrid intuitively seems to be the best data set choice, but vtkImageData is the only data set type with which I know how render a color-mapped/opacity-mapped volume with.<br>
<br>After having read the User&#39;s Guide, reviewed examples, and searched through the online class references, I still can&#39;t figure how I should be doing this. I&#39;m just overwhelmed and any help would be quite appreciated.<br>
<br>Simon Ouellette<br>