How to create ridge line in grasshopper

This topic might be helpful: