Grasshopper

algorithmic modeling for Rhino

reparameterize a curve with given min at the start and given max at the end

hi folks,

what i try to do is, finding the points of a nonuniform division of a curve between the min value from the first division and the max value of the last division.

e.g. i have a curve with a total length of 20meters.
the distance from the starting point of the curve to the second point on the curve is 0.2m and the distance from the point next to the last to the last is e.g. 1m. i want to divide the curve in ten pieces in a nonuniform way between these points.

how to do that in gh or rhinoscript?

look at the attached rhino-file please.


thx
B

Views: 728

Attachments:

Replies to This Discussion

ok, what i know is, that there is a limited number of solutions. the division-length has to be always bigger then the min-value and smaller than the max-value.

the question is , how to find out how much divisions are possible or which range of divisions is available.

?

thx
morphedian
morphendian,

If I understand what you are trying to do it would be fairly straightforward to extract a subcurve from between your first and last defined segments. Then you could toy with the random generator to get a suitable distribution of non-uniform intervals within the subcurve.

-taz

curve_divide.jpg
Hi morphedian,

since I've the same problem, I'd like to know if you could find a solution?

thanks,

p
hi Taz, Sepperl,

this grasshopper method works perfect as a workaround, thx!

of a mathematical point of view of course the problem is still not solved.


cheers

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service