Grasshopper

algorithmic modeling for Rhino

I am having difficulties to produce a list/tree with all neigbour points from each vertice.

My questions:

- how do I find all neighbour points/vertice of the pentagons vertices starting from a certain vertice? E.g. start point= 0 - neighbour points 1, 5, 12 as in the sample script attached.

- how do I find all edges/lines/curves of the pentagons starting from a certain vertice? Always towards a neighbour from the certain point.- Generally: how to find lines /curves starting at a certain but same point?

- looking to each pentagon: what would be the meaning in Grasshopper terms for all normal vectors from the center of each pentagon to the outside/inside of the Dodecahedron? How can I direct all vectors in one direction (either outside or inside)? My aim is to offset all pentagons in this sample into the same direction (either in or out).

I would appreciate to get some help.

Views: 1038

Attachments:

Replies to This Discussion

Dear all. I am still very new in this forum (only 3 posts yet). On one post I got a very fast answer: thank you so much for it. On the other 2 no comments yet. Is any thing wrong with my requests? Anyhow I really appreciate all I could learn from this forum yet. Your kind response would help me being able to give something back of my experience.

Hi Rudi,

I wouldn't take it to heart. There is a large volume of traffic on the GH Forums and if things go unnoticed it's not anything personal, just do as you have done and bump it.

You asked your question in a good way and presented both screen shots and files so I don't see any reason for the lack of interest.

Here is the solution for your closest Points problem:

 Using this same logic I would just create new edges [EDIT: I've just realised this is probably not the question. I'll get back to you with the identified faces]

Lastly to get an offset direction of the pentagon faces I would get the [Polygon center] from the Edges and then [Average] all the vertices to get the origin and define the vectors with the [Vector 2Pt]

Here's the way to get your pentagon edges 

Hi Danny,

Thank you very much for your kind answer. I just wanted to make sure that I act in the right way. Now I am optimistic again for my next bumps.

To find the points, I did manage by myself. My real issue was to find all edges which end at a certain point (in this case always 3) and directing them all (lines/curves) consitantly away from the point. This as an example to understand the systematic of doing this in GH as well as better understanding datastructures (list and trees).

The remainig question was how to make sure that the offset of the pentagon surfaces (in this sample) direct all into the same direction (inwards or outwards). My problem here was that all beside one offseted into the same direction. With your solution I can direct the surfaces now using the vectors direction.

Your help keeps me going. So thanks again!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service