Grasshopper

algorithmic modeling for Rhino

Hi;

How can I get the points of a mesh face. I used the vertices component but I didn't figure out how to work with it:(

cheers

Maryam

Views: 12202

Replies to This Discussion

Is this you looking for?

I'm looking for the points of the second tab of this component:)

Hi Maryam,

 

The Decompose Mesh component will have a list of actual points from the V output and a list of Face indices from the F output. The Face Index list can be decomposed further to get the corner points indices. i.e the index of that point in the V output.

 

 You can then go on to use these lists to select points that represent individual Faces and generate polylines to represent them. Here I have used the Flatten Component to re-name the Branches of the four lists so that they can be merged and flipped to give me multiple lists of the 4 corner points that are then used to select the points for each closed polyline for a face.

Why does the flip hast to be placed here, and why does it order the output of the merge?

If you look at the structure of the output from the merge component there are 4 branches containing 600 points each. The Flip component will change this to 600 branches containing 4 points each. Effectively changing the rows of an array to columns and vice versa.

 

Thus giving you all the points you need to represent the boundaries of a face in one branch.

I think flip is my new best friend :-) Thank you

Hi all

if you are working with meshes you should also install 3rd party plugins from

Giulio Piacentino called

weaverbird (http://www.giuliopiacentino.com/weaverbird/#more-1218)

and the meshedit tools from us (http://utos.blogspot.com/p/downloads.html)

With this additional tools you have a lot more fun with meshes inside grasshopper

like subdivisions, explode mesh, extract polygonfaceedges, tessellation, naked edges, and many more

best

to]

Thanks to all, Danny your explanation was great.And "To" thanks for your kind advices. Your links are actually useful for working with meshes.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service