Grasshopper

algorithmic modeling for Rhino

Hi everybody,

I'm corrently working on a file, which was done by somebody else - so I don't understand the whole content. As there apears an error message after a VB component and I cannot reach the person who wrote it, I thought I give it a try with this discussion!

The error occurs on two lines with the same and following expression:
   Dim domU As New oninterval(srf(i).Face(j).domain(0))
   Dim domV As New oninterval(srf(i).Face(j).domain(1))

and the output error is the following:
"overload resolution failed because no accessible 'New' can be called without a narrowing conversion"

As I don't know this commands at all, it might be a very simple or a more complex error - I'd be glad to just hear anything!

Thanks a lot.

Views: 484

Replies to This Discussion

Hi Martin,

without seeing the script, it's difficult to imagine the exact case. One thing is that OnInterval does not have a copy constructor which accepts another interval. This, added to the fact that srf(i).Face(j).domain(0) returns an OnInterval and not a IOnInterval, makes me think that the following could work, but I have no way to test it:

Dim domU As OnInterval = srf(i).Face(j).domain(0)
Dim domV As OnInterval = srf(i).Face(j).domain(1)

- Giulio
________________
giulio@mcneel.com
McNeel Europe, Barcelona
Hi Giulio,

tanks a lot for your help! Actually this solved this problem but in the same time many other problems apeared...

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service