Other ways to detect edges?

You could export the vertex color from blender and you could apply it there with a script if needed or by painting it.

If you want fully dynamic then you need something to drive that logic.