Find Shortest Path - Consider Turning Costs expression

   310   0   0
User Avatar
Member
45 posts
Joined: Feb. 2016
Offline
Ello, I'm trying to understand an explanation in the houdini documentation for the shortest path sop, https://www.sidefx.com/docs/houdini/nodes/sop/findshortestpath.html [www.sidefx.com]
The Custom Edge Cost explanation is as follows:

" For example, you could penalize edges with steep slopes. If Consider Turning Costs is enabled, the expression can refer to the point visited previous to the edge. See below for a list of available local variables."

- I don't understand how I can penalize edges with steep slopes using the local variables listed below in the documentation
- what is the expression language/syntax I would use to evaluate it?
- do they meant to use something like a dot product function comparing current to previous point? Im not sure how to script something like that.
  • Quick Links