Grasshopper

algorithmic modeling for Rhino

Attached is a simple VB component to divide a curve where I noticed a couple of things (noted in the image):

 

- Get a warning for the point array.  How else should the sample be written?

- Auto-Complete.  I don't see any of the array built-in methods like "Length", etc.

 

Thanks

-Rajaa

 

 

Views: 441

Replies to This Discussion

Hi Rajaa

Dim points As Point3d()= Nothing
in the c# component auto-complete is working fine
but as i know you can type it and it will work
the code should return pars (t param array) and populate points (point3d array) if you initially declare both vars as an array:

Dim points(0) As Point3d
Dim pars(0) As Double
pars = crv.DivideByCount(x, True, points)
A = pars
B = points
Rajaa,

there are bugs in the QWhale editor we use. They just released the 1.6 beta and I've been told they fixed some of the issues I've reported in the past (the C# editor seems to be much better than the VB editor).

I'll package the new editor in a release probably this or next week.

--
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