Grasshopper

algorithmic modeling for Rhino

Hello  all,


Do it a little while I want to ask the question.

It's a bit subtle, but I have some problems for specific components.

Here, look good image. Why item on the tree simplification does not apply?

In the case of the tree component works perfectly. But for an item, nothing changes.

Why ?

Thanks for all

Views: 6661

Replies to This Discussion

When I simplify the Tree:

{0;0;0;0;0}

{0;0;0;0;1}

{0;0;0;0;2}

{0;1;0;0;0}

{0;1;0;0;1}

{0;1;0;0;2}

I should get:

{0;0}

{0;1}

{0;2}

{1;0}

{1;1}

{1;2}

Not:

{0}

{1}

{2}

{3}

{4}

{5}

If I wanted this I would use Replace Branches

How else would I know that branches {3}, {4} and {5} where part of the same geometry.

That isn't the issue, i understand the below; operations on multiple braches makes sense. The issue is the simple fact that there is no reason why one branch can't be simplified to {0}. Rather than repeat myself, please read my previous post.

Simplifying a single branch to {0} is not any more consistent than what happens now. It is quite possible that the number of branches in a datatree vary based on some variable somewhere. If this tree is then fed through a Simplify filter then it is most likely that you will not get a consistent result.

The algorithm that was proposed earlier (remove all zeroes and keep all non-zeroes, unless if there are only zeroes in which case leave one) probably has the highest consistency, but even it cannot be relied upon. I still think this is a problem to which there are no good answers.

--

David Rutten

david@mcneel.com

Tirol, Austria

I do not understand why we simplified:

{0, 0, 0, 0, 0}

{0, 0, 0, 0, 1}

{0, 0, 0, 0, 2}

{0, 1, 0, 0, 0}

{0, 1, 0, 0, 1}

{0, 1, 0, 0, 2}


by

{0}

{1}

{2}

{3}

{4}

{5}

The good result is:

{0, 0}

{0, 1}

{0, 2}

{1, 0}

{1, 1}

{1, 2}

 

I'm the only case with a single branch:

{0, 0, 0, 0}

which give

{0}

or

{0;1;0;0}

give

{1}

Now I understand the message of David. I walk around the problem with a definition (page 2).

but it's really tedious.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service