Grasshopper

algorithmic modeling for Rhino

This appears in the Common SDK as

Curve.CreateBooleanDifference Method (Curve, IEnumerable(Curve))

When I go to use it there is only the method available which uses two closed, planar curves. 

What I've got:

 

Private Sub RunScript(ByVal rib As Curve, ByVal notch As List(Of Curve), ByRef A As Object)

Dim notched As curve
notched = curve.CreateBooleanDifference(rib, notch)
A = notched

End Sub

Obviously comes back as 'cannot convert a 1-d array of curve to curve'

What am I missing? (I'm working in rhino5, version 8.0066)

Views: 462

Replies to This Discussion

Hi David,

which version of Grasshopper are you using?
This seems to be working here (a sample is attached).

Thanks,

- Giulio
________________
giulio@mcneel.com

Attachments:

Was in 8.0066! Still am but it certainly works now. Don't know why, but thanks anyway.

I thought it was an A minus B (B being a list) but it returns all of the 'pieces of difference' so to speak. Luckily the A section is returned at the start of this list and works for my purposes.

Thanks again,

David

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service