Grasshopper

algorithmic modeling for Rhino

hi,

as the title says, id appreciate any advice how to slimdown my definition.

to a given sequenz

0,1,2,3

i create trees with list including the item forth and back to the current - but no overshoot

{0} 0,1

{1} 2,1,0

{2} 3,2,0

{3} 3,2

i mean it works, but im sure there are way better ways to do so.

the output form has to be mantained though :-)

thank you.

Views: 477

Attachments:

Replies to This Discussion

heres a better one,

please forget the first gh file

i think this could be done with graph mapper ?

Attachments:

Here's the skinniest one I could come up with

Attachments:

hi danny,

thanks for postin, cool def,

theres a undershoot in the output list, but was only because the input in the insert comp was 1,-1 i assume you wanted to input -1,-1 so it works.

im askin that stuff because i cant get around in setting up the datastructure for following.(my second posted def is somehow a start)

i have a srf - > with eg 3/3 uv segments which gives 16 points.

so now im trying to get for everypoint, its direct neighbors, which constructs lines.

i would then get , as in example described, 16 branches with associated points in it.

tricky thing is that

at the corners there are only 3 pts in one branch.

on the edges there are only 4 pts in one branch.

inside there are 5 pts in one branch.

somehow it seems so easy to bring up the logics but then if i try in gh i fail :-)

any thoughts ?

only because the input in the insert comp was 1,-1 i assume you wanted to input -1,-1 so it works

it was meant to be -1, 1

 

 

Not sure I understand the rest of it but does this help?

Attachments:

hey,

here the gh.

my first gh file, which i posted was misleading, sorry.

its about how i can get for a series of data for example

0,1,2,3

or

pt0,pt1,pt2,pt3

a datastructure like this

branch {0} items pt0,pt1

branch {1} items pt0,pt1,pt2

branch {2} items pt1,pt2,pt3

branch {3} items pt2,pt3

gh

Attachments:

How about this?

Attachments:

ok now i seeing :-)

you started with -1 in your def, my fault.

could you understand the problem i was describing

i attach a rhino file for better clarification (notice the doulbled curves)

thnx

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service