Filip Rooms wrote:
Dear forum,
I am trying to look for an automatic way to determin whether or not objects are in each others way. In other words, I try to detect object clashes, but I don't succeed
I have two arrays with objects. When I try to detect a clash using a macro in Rhino script, this returns a result:
For intIndex = 0 To UBound(arrTemp1) Rhino.Command("_SelNone") Rhino.Command("_Clash _SelID " & arrTemp1(intIndex) & " _Enter _SelID " & arrTemp2(0) & " _Enter 25 _Enter") Next
However, doing what I thought was equivalent in Rhinoscript does not work:
For intIndex = 0 To UBound(arrTemp1) Rhino.Command("_SelNone") arrTemp = Rhino.ObjectClash(array(arrTemp1(intIndex)), array(arrTemp2(0)), 25) Next
Resulting arrTemp always is null, even with the objects that caused a clash using the macro call. I also tried calling the method with both arrays of objects first instead of calling the array objects one by one, placing them again in an array
My very first attempt was
arrTemp = Rhino.ObjectClash(arrTemp1, arrTemp2, 50)
but that is also always null...
Any suggestion what I did wrong?
Kind regards,
Filip
Posts: 1
Participants: 1