# vtkProbe not passing scalar values?

**URL:** https://discourse.vtk.org/t/vtkprobe-not-passing-scalar-values/13272
**Category:** Support
**Created:** [February 6, 2024, 4:59pm UTC](https://discourse.vtk.org/t/vtkprobe-not-passing-scalar-values/13272 "2024-02-06T16:59:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [February 6, 2024, 7:04pm UTC](https://discourse.vtk.org/t/vtkprobe-not-passing-scalar-values/13272/2 "2024-02-06T19:04:54Z")

</div>

I tried to increase the node density, that didn’t seem to work either:

```python

def project_onto_sphere(pd):
    s = vtk.vtkSphereSource()
    s.SetThetaResolution(60)
    s.SetPhiResolution(30)
    s.SetRadius(1)

    tf = vtk.vtkTriangleFilter()
    tf.SetInputData(pd)

    lf = vtk.vtkLoopSubdivisionFilter()
    lf.SetInputConnection(tf.GetOutputPort())
    lf.SetNumberOfSubdivisions(3)
    lf.Update()

    pf = vtk.vtkProbeFilter()
    pf.SetInputConnection(s.GetOutputPort())
    pf.SetSourceConnection(lf.GetOutputPort())
    pf.Update()

    return pf.GetOutput()

```

---

_[View the full topic](https://discourse.vtk.org/t/vtkprobe-not-passing-scalar-values/13272)._
