Grasshopper

algorithmic modeling for Rhino

I am attempting to extract the midpoints of a closed curve by creating a VB node. But, it is taking some extra points that are not midpoints. It's a pretty simple script. What am I doing wrong?

Views: 379

Attachments:

Replies to This Discussion

hey Mari,
Your ExtractPolylinePoints function returns start and end curve points, so you have 2 points at the same location when the curve is closed.

just add "-1" at the end of line 109
For i As Integer =0 To crv.NurbsCurve().SpanCount() - 1

raf
thanks for catching that....long night.

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