Grasshopper

algorithmic modeling for Rhino

In the definition that i have, when a certain number is used in the divide by distance component, the division fails and divides only a part of the curve. It normally works fine, but in one range, it fails.

What is the reason for this?

*edit*

the last index in the list is {NaN,Nan,NaN}. Sounds like that indian bread which is quite yummy.

Views: 213

Attachments:

Replies to This Discussion

NaN is short for "Not A Number" which is a special mash-up of the bits inside a floating point number that indicates an invalid number (PositiveInfinity and NegativeInfinity are other special cases that don't play nice with proper numbers).

DivideDistance works by intersecting the base curve with a sphere centered around the previous intersection point. If this intersection fails (which, let's face it, isn't unheard of in Rhino) then the points will be cut short.

If you can post the curve that fails I can have a look at what might be done.

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

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