Grasshopper

algorithmic modeling for Rhino

I am curious if there are any new methods for finding angles between faces of a brep. Currently I am using sandbox to find adjacent faces and creating vectors from the shared curve to each face center point to determine the angle. This method takes a bit of data juggling and I think there must be a simpler way... Any ideas??? THANKS!!

Views: 4980

Replies to This Discussion

wrong post answer, sorry thought you were wondering about meshes!

best

alex

You can measure the angle betwen normals and add 180 degrees.
Attachments:
thanks guys both answers very helpful!

Anyway that's rather easy to do with ... er ... you know what I mean I do hope, he he.

Notify if you want the Dark thingy.

best, Peter

XD sorry for late reply.

Take a look at this.

Some surface can have a complex shape thus the central point of the face can be misleading to the solution.

Every surfaces have perimeter/edges going counterclockwise (if you look the surface from the top, normal positive), this is useful and necessary here.

Given a location on an edge, find local (closest point) surface normal and local edge direction (tangent/vector). By doing vector cross product between those two vectors you can achieve a vector always pointing inside of the surface.

Then you can correctly find the inside/outside angle of every brep edge.

My solution take samples everywhere (in the edges) in a brep.

Indeed, a bit noisy.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service