Terrain editing - How to select faces with slope greater than X?

I’m doing some terrain level design work in blender and I want to remove cliff faces from my height mesh (going to replace them with more detailed cliff rocks).

In my game anything above slope angle of 30 degrees isn’t walk-able and will be likely a cliff mesh that I want to cut out. For instance the grey area here (I made a script that paints textures in unity on a slope, but this is just for prototyping.

I then want to bring this heightmap into blender and delete those grey areas. So it would be great if I didn’t have to manually select them and there was someway to select all tris/faces with a vertical slope of > X or something.

(Bad blender mockup down here for illustration purposes)

Also I know that if something is a quad it can have more than one slope, so perhaps I need a way to triangulate the heightmap mesh after I create it from the heightmap?

Thanks so much!

Attachments