# Apply scalar in vtkDijkstraGraphGeodesicPath function

**URL:** https://discourse.vtk.org/t/apply-scalar-in-vtkdijkstragraphgeodesicpath-function/16374
**Category:** Support
**Tags:** python, code
**Created:** [April 7, 2026, 10:38am UTC](https://discourse.vtk.org/t/apply-scalar-in-vtkdijkstragraphgeodesicpath-function/16374 "2026-04-07T10:38:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joo94372](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joo94372/32/9713_2.png) [@joo94372](https://discourse.vtk.org/u/joo94372)
#### Post date: [April 7, 2026, 10:38am UTC](https://discourse.vtk.org/t/apply-scalar-in-vtkdijkstragraphgeodesicpath-function/16374/1 "2026-04-07T10:38:00Z")

</div>

Hello.  
I’m using it well to find a distance-based path for the vtkDijkstraGraphGeodesicPath function. But I want to find a path that moves close based on the desired curvature value.

The [VTK: vtkDijkstraGraphGeodesicPath Class Reference](https://vtk.org/doc/nightly/html/classvtkDijkstraGraphGeodesicPath.html) link looks like I can use the UseScalarWeights() function, but it says experimental.

I tried several tests, but I couldn’t check if the function was applied.

Are there any other examples or materials or contents on how to use them?
