Grasshopper

algorithmic modeling for Rhino

So I want to check whether a curve is "kinky" or a continuous using VB script.  I think that I need to use GetNextDiscontinuity, but I am unsure of exactly what it does.  My current understanding (or lack thereof):

x is a curve
x.GetNextDiscontinuity(???????continuity????, min domain, max domain, index of discontinuity)

I have no idea what the first term represents.  Min and max domain set the interval of the curve to check for discontinuities.  If it finds a discontinuity in this interval then it returns the first discontinuity index that it encounters to "index of discontinuity." 

If someone could clear this up for me I would greatly appreciate it.  I would also like to be able to extract the total number of discontinuities on a line and their points, similar to the "Discontinuity" component.

Views: 412

Replies to This Discussion

Hi Ben,

there's all kinds of discontinuity, and you can check for each one. I'll attach the Continuity Enumeration from RhinoCommon source code, it may illuminate some of the possibilities.

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

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