# Accessing data values along a view ray during ray casting

**URL:** https://discourse.vtk.org/t/accessing-data-values-along-a-view-ray-during-ray-casting/13677
**Category:** Support
**Tags:** code
**Created:** [April 9, 2024, 5:28am UTC](https://discourse.vtk.org/t/accessing-data-values-along-a-view-ray-during-ray-casting/13677 "2024-04-09T05:28:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sdutta](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/e19b73/32.png) [@sdutta](https://discourse.vtk.org/u/sdutta)
#### Post date: [April 9, 2024, 5:28am UTC](https://discourse.vtk.org/t/accessing-data-values-along-a-view-ray-during-ray-casting/13677/1 "2024-04-09T05:28:17Z")

</div>

Is there a way that VTK can provide me the data value and the coordinate of the sample points along a view ray during ray casting algorithm?  
My goal is to collect all samples from different viewpoints using VTK ray casting algorithm.

Thanks for any help!
