Grasshopper

algorithmic modeling for Rhino

Hi all,

I am wanting to rewrite a VBScript component that runs Rhino's text command for patch.

I have the following situation:

I have a collection of points, then i make a collection of closed polylines and at the end i want to make the patches without rhino comands and baking.

 

 

Inside the VB-component:

Something must be wrong with this component because i can't see any patches in Rhino and "A" returns only "Null"-Values.

Hope someone can help me
Thanks in advance,

 

Raul

Views: 787

Replies to This Discussion

You are using the "Legacy" vb script component. Try it with the newer vb.net script component and your code should work.

Also, the single line script below should do the trick equally well - no real reason to encapsulate the thing with an "If Go Then," unless you're doing extremely complex patches:

A = Brep.CreatePatch(CrvList, uSpans, vSpans, .01)

Thank you for your advice. That was the problem! It was the old legacy VB-Component.

Have a nice day,

Raul

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