Grasshopper

algorithmic modeling for Rhino

How to obtain Mesh edges, points and relative face normals

Hi,

I have an open mesh and using mesh edges I can join E1 to obtain a polyline that resembles the outter edge of the mesh. After which I use Control Points to get the XYZ coordinates which are indexed anti-clockwise.

I have also used deconstruct mesh where I am able to obtain all the face normals (I believe they are the face normals and not the vertices' normals?)

The problem I am having is matching the list of Control points coordinates to their relative face normals.

Another way to put it: I would like to obtain the 6 coordinates (xyz points, xyz normals) in an sequential (clock or anti clockwise) manner for only the outer edge of an open mesh and store them in a list of some kind.

Can anyone help?

Views: 666

Replies to This Discussion

Hi, 

so using Face Normal and Closest Point  I have obtained the face centre point at the edges of the mesh and the related index.

How can I combine the list of indexes given and look up the related normal from another list?

In other words, given two lists, how do I look up  the value from one list (the list that contains indexes' as values) from the another list (the second list contains the normals' xyz coordinates)?


Hope this makes sense. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service