[vtkusers] My volume won't display in the renderer.
Ruff
albin.nilsson at gmail.com
Thu Jul 11 04:53:48 EDT 2013
Now I can render it as point clouds, but not as a volume. All I get is an
empty renderWindow. I get no errors, but no data is rendered either. What am
I doing wrong?
ScalarGrid = vtk.vtkUnstructuredGrid()
ScalarGrid.SetPoints( vtkPoints with [index,x,y,z] )
ScalarGrid.GetPointData().SetScalars( vtkFloatArray with [index, scalar]
)
volumeMapper = vtkUnstructuredGridVolumeRayCastMapper()
volumeMapper.SetInputConnection(ScalarGrid)
volumeMapper.SetScalarModeToUsePointData()
...etc
I tried using DataSetTriangleFilter (found in some example) but then the
program claims that Im using the "ray cast mapper without scalars!"
I rendered it as a point cloud before, with the vtkVertexGlyphFilter, but
that doesn't seem to be applicable here, though I suppose the solution has
something to do with cells here as well...
--
View this message in context: http://vtk.1045678.n5.nabble.com/My-volume-won-t-display-in-the-renderer-tp5721892.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list