Grasshopper

algorithmic modeling for Rhino

Hello.

MCX (Multi curve intersection) outputs curve index in one list and division parameters on another.

The index table would repeat the same curve index the number of times that particular curve has intersected.

If curve 1 has sectioned 4 times, curve 2 one time, curve 3 not sectioned and curve 4 two times sectioned the output would be

List1     List2

1          0.212

1          0.583

1          0.744

1          0.912

2          0.443

4          0.353

4          0.674

How can I convert this "relational" scheme o a hierarchical tree?

Something like:

{1}

0.212

0.583

0.744

0.912

{2}

0.443

{4}

0.353

0.674

Shouldn't MLX component output this way?

Also shouldn't it output a list of non intersected curves. I guess one can append distinct indices from the initial curves input but I would be simpler

I'm still struggling with the list, sets and tree components so any tips would be great.

Thanks

Views: 512

Replies to This Discussion

I can't now remember why I'm not outputting trees but lists instead. There may have been a good reason, or maybe I was just lazy. I'll get back to you when I remember some more.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Meanwhile...I managed to get there using common components.

I'm still struggling with these list, sets and tree components...Is there a simpler way?

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service