algorithmic modeling for Rhino
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
© 2025 Created by Scott Davidson.
Powered by