Hey,
I know it had been already done but I can't find the solution. I recently started VB.Net and I am still struggling with it.
I try to make a culling pattern to dispatch an array of lines intersecting an other array of lines (could be breps surface....). It is for a shading studies.
Please anyone can help me to debug it?
here the script in VB
Sub RunScript(ByVal x As List(Of OnLine), ByVal y As List(Of OnLine))
Dim i As Integer
Dim j As Integer
Dim N As Integer
Dim LBool As New List(Of Boolean)
Dim test As Boolean
For i = 0 To x.Count() - 1
LBool.Add(False)
Next
For i = 0 To x.Count() - 1
For j = 0 To y.Count() - 1
'
N = 0
Dim intsec As Boolean
Dim crvs() As IOnCurve
Dim pt As On3dPointArray
intsec = RhUtil.RhinoIntersectBreps(x(i), y(j), 0.01, crvs, pt)
Dim intCount As Int32 = Pt.sizeofarray
If Not intsec = False Then N = N + 1
Next
If N = 0 Then
test = False
Else
test = True
End If
LBool(i) = test
Next
A = LBool
End Sub
Tags:
- Attachments:
-