# Galapagos Pathfinder with min slope

**URL:** <https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351>\
**Category:** Grasshopper\
**Created:** [May 2, 2020, 10:59pm UTC](https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351 "2020-05-02T22:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/arten/32/697219_2.png) [@arten](https://discourse.mcneel.com/u/arten)\
**Post date:** [May 2, 2020, 10:59pm UTC](https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351/1 "2020-05-02T22:59:45Z")

</div>

I tried to do a pathfinder with Kangaroo and it seems to work… almost.  
This one is Galapagos version, but I don’t think I did it correctly?

I am trying to get from point A to B with a min distance and min slope. Results are not convincing.  
The road / path when going up the hill should start meandering, but not going too far away.

I basically trying to achieve something like shown on the image?

Thank you for help

[PathFinnding\_Galapagos\_01.gh](https://discourse.mcneel.com/uploads/short-url/s4WAJB3hDYslDUTDM0mAajXwWEq.gh) (190.9 KB)

 ![Screenshot 2020-05-02 at 18.04.11](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/6/c/6cd211982a68c844afc16e7d68d0d2be0a7d9acb.png) ![Screenshot 2020-05-02 at 23.53.33](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/2/822cbfc3bbda7c677e28e74fa7a29b93aa01be01.png) ![Screenshot 2020-05-02 at 23.56.50](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/6/86626a7a1402a3b0b1af2d57c7f29fa646a09d65.png)

---

<div class="post-metadata">

**Author:** ![alphadog278](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alphadog278/32/448151_2.png) [@alphadog278](https://discourse.mcneel.com/u/alphadog278)\
**Post date:** [May 3, 2020, 12:27pm UTC](https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351/2 "2020-05-03T12:27:50Z")

</div>

I have tried with using Geodesic Line and less points than your file (it’s kind of heavy in my laptop).  
I am also interested in other’s thought.

Edit : Cull duplicate in the middle of the definition makes logical error after several minutes of run. Cutting 6 points into 4 points.

 ![Trial](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/0/808c9f5083ec1259f967cc8cf58e7c73c8ce41f2.png)  
[PathFinnding\_Galapagos\_try.gh](https://discourse.mcneel.com/uploads/short-url/nrXcDnXEGlLcopq9SaLmCfJPsx5.gh) (195.2 KB)

---

<div class="post-metadata">

**Author:** ![arten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/arten/32/697219_2.png) [@arten](https://discourse.mcneel.com/u/arten)\
**Post date:** [May 3, 2020, 3:58pm UTC](https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351/3 "2020-05-03T15:58:45Z")

</div>

Hi @alphadog278

Yes, I tried it as well. And I tried using curve on surface component with just 2 control points. It looks better and smooth. But not the way road will be designed 🤔

I am trying to do it in Kangaroo as well (in parallel) if you are interested [Min/Max Slope Pathfinder in Kangaroo](https://discourse.mcneel.com/t/min-max-slope-pathfinder-in-kangaroo/101259/5)

---

<div class="post-metadata">

**Author:** ![arten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/arten/32/697219_2.png) [@arten](https://discourse.mcneel.com/u/arten)\
**Post date:** [May 4, 2020, 8:01am UTC](https://discourse.mcneel.com/t/galapagos-pathfinder-with-min-slope/101351/4 "2020-05-04T08:01:28Z")

</div>

Maybe @DavidRutten have an idea ? approach to try.😉  
Thank you in advance
