Grasshopper

algorithmic modeling for Rhino

Hi all,

I should clarify from the title, of course, that the behavior of the shatter component in this instance is only unexpected to me. I've been wrong once or twice...

The situation I'm dealing with is attached. I have a number of curves (this number should be dynamic...i.e. in this case 5, but it could be 18) and two point lists of the same number. What I want is to split each curve (say, curve 0) with the two corresponding points (i.e. 1stPoint 0 and 2ndPoint0), producing 3 resulting curves. Currently, as you can see, that's not quite happening.

This strikes me as a data structure, but I can't quite seem to conceptualize how to solve the issue while still allowing the number of curves/points to be variable. Any help is greatly appreciated!

Austin

Views: 286

Attachments:

Replies to This Discussion

This is definitely a data structure issue. For the behavior you desire, you need one branch for each input curve (which is to say, the list of curves should be grafted) and one branch for each pair of t-parameters at which to shatter the curve. 

Ah yes, that was indeed the issue. Makes perfect sense. Thanks!

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