algorithmic modeling for Rhino
Tags:
If ZoneCrvs Is Nothing OrElse BldgCrvs Is Nothing Then Return
Dim XCrvs As New List(Of OnCurve)
For i As Integer = 0 To ZoneCrvs.Count() - 1
For k As Integer = 0 To BldgCrvs.Count() - 1
If ZoneCrvs(i) Is Nothing OrElse BldgCrvs(k) Is Nothing Then Continue For
Dim CCX As OnCurve() = RhUtil.RhinoCurveBooleanIntersection(ZoneCrvs(i), BldgCrvs(k))
If CCX IsNot Nothing Then
For j As Integer = 0 To CCX.Length - 1 'Could be also Ubound(CCX)
XCrvs.Add(CCX(j))
Next
End If
Next
Next
A = XCrvs
if (ZoneCrvs == null || BldgCrvs == null) return;
List XCrvs = new List();
foreach (OnCurve oneZoneCrv in ZoneCrvs)
{
foreach (OnCurve oneBldgCrv in BldgCrvs)
{
if(oneZoneCrv == null || oneBldgCrv == null) continue;
OnCurve[] CCX = RhUtil.RhinoCurveBooleanIntersection(oneZoneCrv, oneBldgCrv);
if(CCX != null)
for (int j = 0; j < CCX.Length; j++)
XCrvs.Add(CCX[j]);
}
}
A = XCrvs;
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
© 2024 Created by Scott Davidson. Powered by