Grasshopper

algorithmic modeling for Rhino

Don't know why the path mapper is so hard for me to figure out. Out of the <Trim Brep> Co side, I'm trying to re-group the curves. 

 

Before <Trim Brep>

{0;0;0} (N=4)

{0;0;1}(N=4)

{0;0;2}(N=4)

etc.

 

After <Trim Brep>

{0;0}(N=0)

{0;1}(N=1)

{0;2}(N=2)

{0;3}(N=3)

{1}(N=1)

etc.

 

I would like,

{0;0}(4)

etc.

 

 

Views: 567

Replies to This Discussion

Hi Greg,

 

this data structure is a mess. You've actually got multiple paths with different lengths. It might be possible to solve it with a Path Mapper, but are you sure you cannot simplify your data first? Why is the Curve parameter orange? Why are there so many nulls in your data?

 

Since you've got two different path 'topologies' in your data, you'll need two separate mappings (but but them in the same PathMapper). How about the following:

 

{A;B} -> {0;A}

{A} -> {0;A}

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks David,

 

Your absolutely correct.  I need to take a step back and fully understand data structures.  Most of my problems with GH boil down to incoherent data structures. 

look at digitaltoolbox.info for good tutorials about data matching...

Thank You Mateusz,

 

I'm a big fan of digitaltoolbox and will play the tutorials again.  13 times is a charm :)

 

I never said I was fast.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service