Grasshopper

algorithmic modeling for Rhino

So I have a landscape made of poly surfaces and I want to remove all surfaces above a certain gradient. Is this possible.

 

I've tried finding the surface normals but they are either straight up or incorrect.

 

In the attached definition I have tried to flip the normals of down facing surfaces and then analyse all surfaces and select only the surfaces with a small angle difference to another vertical vector.

Views: 1023

Attachments:

Replies to This Discussion

Hi Johnathan,

You could use the the vComp Component to decompose the normal vector and generate a cull pattern based on the Z component only. And if you used the abs value you wouldn't need to worry about upside-down surfaces.

Thanks Danny, has saved me a lot of time of trial and error!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service