[vtkusers] My point cloud data won't display in the renderer.
Ruff
albin.nilsson at gmail.com
Tue Jul 9 11:46:33 EDT 2013
All i get is an empty renderWindow. I get no errors, but no data is rendered
either. What am I doing wrong?
What I do is pretty much this:
AtomGrid=vtk.vtkUnstructuredGrid()
AtomGrid.SetPoints( vtkPoints with [index,x,y,z] )
AtomGrid.GetPointData().SetScalars( vtkFloatArray with [index, scalar]
)
volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()
volMapper.SetBlendModeToComposite()
volMapper.SetInput(AtomGrid)
I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims
that I have no scalar values to use(!!)
(I cheated before, and was satisfied using ImageData for this, but now I
really need to get this to work with UnstructuredGrid)
--
View this message in context: http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list