Grasshopper

algorithmic modeling for Rhino

Map 1 dimensional linear point list onto 2 dimensional list.

hi,
I'm trying to understand a script,
but have my problems, cause this is the first time...

how should i change the VB component-script,
so the result is such as in the pict

many thanks!

 

 

 

Views: 256

Attachments:

Replies to This Discussion

Hi RWNB,

 

The picture shows a single list of point (one dimensional array). Also, you're using the Legacy VB component. Is there a reason you chose this one in favour of the newer one?

 

Edit: oh I see, you want to modify an existing Script, that's why you're using the legacy component. What exactly are you trying to accomplish? I'd much rather explain using the new RhinoCommon SDK instead of the legacy SDK.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

dear david,

for my work, i need a seamless triangular- and hexgrid pattern.
as you have already seen, this script allows a seamless triangular grid.
http://www.grasshopper3d.com/forum/topics/seam-problem

i would like better understand this script,
maybe to build with this approach a seamless hexgrid.
first of all i need to understand the parts of this script,
and of course making them "visible".

-that was even my question-

i deleted the rest of the script, except of the first part,
to study the functionality of this sequence.
i would appreciate if you could help me.

when the explanation with the new RhinoCommand SDK
appear for you useful, and the script can be implemented with it,
then i certainly will not make any resistance. (:


many thanks

Hi RWNB,

 

I'm thinking about how to make this sort of thing easier for all cases. It seems to me the [Relative Tree Item] component is a step in the right direction. I attached a file with a VB script that basically expands a bit on this behaviour. It allows you to specify a sequence of relative offsets from an base item in the data tree. In this particular case, I hand-coded a set of offsets that result in hexagons given the current data layout.

 

I submit this merely as a proof of concept. Ultimately this would have to become a component similar to [Relative Tree Item].

 

Does this seem like a promising approach?

 

ps. If you want a different hexagon, move the point inside "Hexagon Corner" to a different location.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

dear david,


from view of one average grasshopper user it is of course very gratifying,
that with this tool the intuitive possibility is made available,
to create a seamless hexagon. for me still remain some questions unanswered.
I will first ask only one question: if the preferred surface of mine
requires a high subdiv in U and V direction, it would be useful to modify
"the RelativTreeItem Tool" so far, that it independently recocognizes
the next following startPts of the hexagons to simplify this process.
I am not in a position, or the ability to solve this problem.
but maybe you can find the time for this not insignificant matter
and bringing the grasshopper users a long awaited tool. (:

i'm looking forward

many thanks

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service