[vtkusers] Volume rendering of vtkUnstructuredGrid

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Feb 24 11:32:41 EST 2005


jiksed

	There is already another thread on vtkusers:

http://public.kitware.com/pipermail/vtkusers/2004-May/073865.html


	There are examples on how to use a vtkUnstructuredGridVolumeRayCastMapper:

http://www.vtk.org/doc/nightly/html/c2_vtk_e_7.html#c2_vtk_e_vtkUnstructuredGridVolumeRayCastMapper

and tests:

http://www.vtk.org/doc/nightly/html/c2_vtk_t_14.html#c2_vtk_t_vtkUnstructuredGridVolumeRayCastMapper

	You can override the default RayCastfunction of 
vtkUnstructuredGridVolumeRayCastMapper, by using:

vtkUnstructuredGridVolumeRayCastMapper::SetRayCastFunction(vtkUnstructuredGridVolumeRayCastFunction 
* f)
http://www.vtk.org/doc/nightly/html/classvtkUnstructuredGridVolumeRayCastMapper.html#z4108_0

But keep in mind that vtkUnstructuredGridBunykRayCastFunction *is* the 
default RayCastFunction so you don't need anything fancy in your code to 
use it. Just instanciate the vtkUnstructuredGridVolumeRayCastMapper

HTH
Mathieu

jiksed wrote:
> No one responded to my last email. Now I cut my qestion short. Here are 
> a few errors I got
> while compiling my program:
>  
> E2316: SetScalarModeToUseCellData() is not a member of
>            vtkUnstructuredGridVolumeRayCastMapper
> E2316: SetVolumeRayCastFunction() is not a member of
>             vtkUnstructuredGridVolumeRayCastMapper
>  
> There is no example or test about how to use 
> vtkUnstructuredGridBunykRayCastFunction.
> IntermixedUnstructuredGrid.tcl did not use any raycast function either. 
> Any comments
> about this? I am using VTK4.4 on WinXP.
>  
> Will someone please tell me what's wrong? Thanks a bunch.
>  
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list