I am trying to select the differnt hight points of a building volume to understand how many levels each area has but have no idea where to start with this script.
Our options are more limited given that it is a single mesh, but we can exploit the surface normals to detect horizontal/close to horizontal surfaces only and then filter the results to return the largest of those horizontal surfaces, giving you the large roof surfaces you are after.
Happy to help, if you have additional requirements come up down line I’d recommend making a new post with the updated needs and linking back to this post if needed