nt to multiply the number of items in the list A, so at the end I will end up with the same number of elements in each lists.
e.g. (for branch 1 in list A I want to have two times the same curve, and the same for the branch 2 and so on )
List A (Data with 88 branches)
{0} N=1
{1} N=1
{2} N=1
{3} N=1...
List B (Data with 88 branches)
{0} N=1
{1} N=2
{2} N=2
{3} N=1...
NEW List A (Data with 88 branches)
{0} N=1
{1} N=2
{2} N=2
{3} N=1...
Any suggestions about how to do this?
Thank you,
Martha
…
18): 'Rhino.Geometry.AnnotationBase.Text' is obsolete: 'Use RichText or PlainText' (line 88)
2. Warning (CS0618): 'Rhino.Geometry.AnnotationBase.FontIndex' is obsolete: 'Use Font property instead' (line 92)
3. Warning (CS0618): 'Rhino.RhinoDoc.Fonts' is obsolete: 'Use DimStyles table instead' (line 92)
1. Error (CS1061): 'Rhino.Geometry.TextEntity' does not contain a definition for 'AnnotativeScalingEnabled' and no extension method 'AnnotativeScalingEnabled' accepting a first argument of type 'Rhino.Geometry.TextEntity' could be found (are you missing a using directive or an assembly reference?) (line 94)
Wondering, if perhaps, you will be updating for Rhino 6 compatibility?
Cheers
Lyndon
…
End of method assumed. (line 90)Error: Comma or ')' expected. (line 90)Warning: Function 'GetFrustumNearPlane' doesn't return a value on all code paths. Are you missing a 'Return' statement? (line 91)…
Added by Adam Chałupski at 11:24pm on September 23, 2012
nt B2[i] so B1[i]<=0 means no new connections allowed for point i ,so point i is deleted from B1, B2 updated accordingly.
Initialization:
B1: max number of connections x number of points
B2: all the points
B3: nothing (well null or something, need to create the branch)
Algo:
Get first point in B2, get his allowed number of connections N in B1, find N closest points in B2, create lines in B3, update B2 accordingly. Erase points with max connections (including the first point)
Next
Stop when no points available
At end of loop, B3 stores the created lines.
…