algorithmic modeling for Rhino
Hi
I'm trying to write a simple script to offset a curve muliptle times (using a 'for loop') but I don't know the vb dotNet syntax. I'm sure lines 84, 88 & 89 are wrong. Any ideas.
Thanks. P
Tags:
Private Sub RunScript(ByVal rows As Integer, ByVal width As Double, ByVal crv As Curve, ByRef A As Object)
Dim plane As Plane
If (Not crv.TryGetPlane(plane, 1e5)) Then Return
Dim rc As New list(Of Curve)
For i As Integer = 1 To rows
Dim offset_curves As Curve() = crv.Offset(plane.ZAxis, plane.Origin, i * width, 0.01, 0.1, CurveOffsetCornerStyle.Round)
If (offset_curves Is Nothing) Then Continue For
Dim join_result As Curve() = Curve.JoinCurves(offset_curves)
If (join_result Is Nothing) Then Continue For
rc.AddRange(join_result)
Next
A = rc
End Sub
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by