Grasshopper

algorithmic modeling for Rhino

What I would like to do is be able to query the length along a curve from a point on that curve back to the start (or end) point.  I thought there would be a component that acts like the reverse of the Evaluate Length component, but  I can't find it.

 

How would this best be done for one or multiple points?

 

Thx,  --Mitch

Views: 3425

Replies to This Discussion

The upper definition uses a GH point which you can move along the curve and the lower definition uses an instantiated point from Rhino.

 

Chris

Hi Chris,

SubCrv was one of the ways I was looking for and had not found it - I was looking in the wrong place - thanks for the reminder.  Still seems like a lot of components needed to get this data though...

 

--Mitch

Mitch,

 

For your consideration...

Ahh, Evaluate Curve has a length to start output...  That's really what I had been looking for from the beginning, and somehow I didn't find it...  Thanks taz!  Oh, and thanks too for reminding me that you can reparameterize the curve inside the component...

--Mitch

Hi Mitch, Chris, this is what I would do:

Nice!

 

Chris

Yessss, but....

 

The parametrization of a curve does not necessarily correspond 1:1 with its length - except where the curve is a straight line...  So you can't just multiply the parameter of the point on the curve with the overall length...  Also if the parametrization is other than 0 to 1, this will not work...

Attachments:
Your right Mitch, I guess it was my turn to have a bit of a brain fart. Sorry you had to hear it ;)
0

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