Grasshopper

algorithmic modeling for Rhino

Hi all-

 

In this definition I have interp on srf crvs drawn and I am trying to manipulate points along those curves in response to stress values across the surface. Then I redraw the interp crv through the translated points.

 

My problem is this:

I did not want the endpoints of the original interp crvs to move so I removed them from the data set to be translated. However, I cannot figure out how to add the endpoints back into the data set before drawing the new interp crvs. I believe it's just a matter of list management but I cannot riddle it out. 

Any thoughts?

 

Views: 614

Attachments:

Replies to This Discussion

Hi Bennett, you could use the Weave component. input 0 the start points, input 1 the points you found, input 2 the end points. Then weave with pattern 011111.....11112, and create your curves. use as much 1's as the number of points you've got between start and end points.

You can use the Path Mapper to merge these points back into the right place, but I would prefer to simply generate ZERO length Vectors to move the first and last points and that way not destroying the groups.

If you use the Path Mapper you are going to have to change it manually each time you alter the number of division points of the curve.

Attachments:

Thanks Pieter and Danny,

 

Pieter: i've not seem a weave component with 0, 1, & 2 for inputs.I only see the one with 0 & 1. Where would I find the other?

 

Danny: Can you explain how you would use zero length vectors to move the end points?  

 

I did come to the realization that since i am removing the end points, i need to use the set that does not contain those points as the input for other components upstream instead of using the divide points. Then i just simplified the tree and added the endpoints back in. Do you think this is the est way to go?

 

Thanks

Attachments:
ZERO length vectors i.e. 0,0,0 wouldn't actually move but the Move component will still included them as outputs along with all the other points in the same order and data structure.
Right click the Weave component and choose input manager.
Attachments:
Thanks a lot Pieter. I'm liking this strategy. I didn't realize you could add inputs in the weave component. Very cool.
You're welcome Bennett, glad you like it:)

If either of you guys are interested: there is another level of sophistication i am trying to add to this definition. 

Instead of having every point on every curve move toward which ever stress point is closest to it, I would like to

1.calculate vectors from every crv point to every stress point

2.set the length of each vector to be proportionate to the stress value of the surface point and inversely proportionate to the distance of the two points.

3. average the adjusted set of vectors for each point. 

 

This way it is my belief that the surface curves will be pulled to the area of the surface which is averaged to be the highest stress in closest range for each curve... i think

Any assistance in achieving this would be most appreciated. 

 

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service