X0RD Posted November 11, 2017 Share Posted November 11, 2017 Hello everybody, Im looking into the "find shortest path" node to create road like the image below; And now i have find a particular piece of text in the help of "find shortest path" node that could help me creating it; "For example, you could penalize edges with steep slopes." This would require using "Custom Edge Cost" and expression, that you also can find in the "find shortest path" help as wel (in the bottom). Now I have tried multiple expressions, but it only once that works for me are the $ + expression with unwanted results and no divination of how steep a slope can be. If somebody could help me out, that would be great. Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 12, 2017 Share Posted November 12, 2017 In general I would try to avoid the usage of H-expressions, and would use primitive cost attributes to guide your pathfinder. To make best use of this, you want your input grid to be open primitives (one primitive for every connection, rather than a normal quad grid) but once you have that, you can combine however many constraints into this cost attribute, using wrangles for instance. Another approach you could use is using the surface primitives/ edges to avoid, in the third tab, to (un)group connections that are too steep. 2 Quote Link to comment Share on other sites More sharing options...
Xords Posted November 23, 2017 Share Posted November 23, 2017 Thank you for your input. I finally had time to implement your feedback and it worked out really well. 2 Quote Link to comment Share on other sites More sharing options...
in63119 Posted January 30, 2019 Share Posted January 30, 2019 I'm working on the same thing, but I can not solve it... If you share the hip file, it will be beautiful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.