Grasshopper

algorithmic modeling for Rhino

Hi guys,
in this release (0.6.0057) but also in previous releases I have a problem with the middle point of a curve.
First of all I know two methods to find the middle point of a curve

1)POINT ON CURVE and set slider at 0.5
2)EVALUATE CURVE and set 0.5 as curve parameter to evaluate

Are there others methods to obtain it?

In the attachment file,I made (with 0.6.0055 release,same thing in 0.6.0057)a definition where you can see the error I had found: middle point is not the same.(IMPOSSIBLE)
Is this a bug or my personal error?

Thank you in advance...

Luca.

Views: 716

Attachments:

Replies to This Discussion

Hi Luca,

reparameterizing will not make the curve progression linear, it will merely adjust the domain to go from zero to one. There is never any guarantee that the value in the middle of the curve domain is also in the middle of the curve length. This is true for some curve types (arcs, circles and lines notably), but not all.

The [EVAL] component samples the curve along the domain, whereas the [POINT ON CURVE] object ignores curve parameters and evaluates a curve using length based algorithms. You want to use [EVALUATE LENGTH] instead of [EVALUATE].

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,

I had understood the sense of reparameterizing,but it is everything clearest now.
Thanks for your reply...perfect explanation.

Luca

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