Grasshopper

algorithmic modeling for Rhino

I though some of you might be interested in this. A simple def i wrote to divide a curve 'by curvature' --- with more division points where the curvature is greater.

Right now it only works on one curve at a time... could someone help me with the data trees, so i can get it to work on multiple curves at once?


Views: 12122

Attachments:

Replies to This Discussion

nice one!
Attachments:
ah. excellent. thanks.
This is really great and useful. If you guys get a sec an explanation would be awesome. I get the general idea but im not quite sure how the Vector Length Amplitude and the partial results of Mass Addition works. Also there is a secondary line that is drawn, it would be nice to get a better understanding of all this...
charles, thanks.

let's see if i can explain the logic....


the vector length component outputs a (scalar) value for curvature at each sample point along the input curve. If you graph this, it looks like the top right image above. The partial result from mass addition (lower right) is to ensure that the x- and y- dim are both always increasing - this means that there are no "peaks" (try bypassing the mass addition component - it still works but you will see gaps at the points of maximum curvature)

I then take this curve and divide it evenly along its length, and project those points down to the x axis - you see how the spacing along the x axis is determined by the slope of the curvature graph. these new x values will be my new division pts along the input curve.

i'm sure there's a better way to explain this (mathematically) - but i hope this helps you see how it's done graphically.
actually that is a really good explanation, thanks Evan
Do you still have the corrected .ghx you attached to your post for this thread? Or could you at possibly inform me as to what you corrected if you remember? The link doesn't appear to work.
the link works for me....
Very nice definition. You might find this discussion interesting:
http://www.grasshopper3d.com/forum/topics/curve-division-density-wise
Thanks for the script, worked perfectly.
Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service