algorithmic modeling for Rhino
Tags:
'These constructors should work because OnPolyLine
'derives from ArrayOn3dPoint
Dim plCrv1 as New OnPolyLineCurve (polyLine1)
Dim plCrv2 as New OnPolyLineCurve (polyLiine2)
Dim intersectionEvents as New ArrayOnX_EVENT()
plCrv1.IntersectCurve (plCrv2, intersectionEvents, doc.AbsoluteTolerance)
'ToDo: Sort through intersection events...
'''continuing from previous example...
Dim intersectionPoints as New List (of On3dPoint)
If intersectionEvents.count > 0 Then
'there's at least one intersection
For i as integer = 0 to intersectionEvents.count-1
intersectionPoints.Add(plCrv1.PointAt(intersectionEvents(i).m_a(0))
Next
End If
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