Grasshopper

algorithmic modeling for Rhino

Hi

I'm having some issues when shattering a curve. See the curve below, I've put it into GH, then I'm trying to put point along it, based on the graph function shown.

My problem is that although the curve should be equally divided, the points seem to 'bunch' towards the left, and I think that's because the curve has more control points at that end. It's as though the curve's mid-point is closest to the middle control point, not halfway along its length.

Does anyone know how to fix this, or can recommend another way to do what I'm trying to do?

Thanks in advance

Views: 617

Replies to This Discussion

Shattering works on curve parameters. Curve parameters are not guaranteed to progress with linear 'speed' along the curve. If you want to divide the curve based on lengths, you'll first have to convert length values into parameters. 

--

David Rutten

david@mcneel.com

Tirol, Austria

Since this whole length/parameter thingy is confusing so many people, I wrote a blog post trying to explain the difference.

http://ieatbugsforbreakfast.wordpress.com/2013/09/27/curve-paramete...

--

David Rutten

david@mcneel.com

Tirol, Austria

I used Rhino commands to assign weighting to the control-points, however you can do in Grasshopper as well. The [NurbsCurve] component allows you to specify the control-points, the knot-vector and weights. Note that there is also a component called [Nurbs Curve] (with a space). That is actually a bug, it should be named something else.

--

David Rutten

david@mcneel.com

Tirol, Austria

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