nput parameter and then set the named values on the second?
protected override void BeforeSolveInstance() { Param_Integer param0 = Params.Input[0] as Param_Integer; Param_Integer param1 = Params.Input[1] as Param_Integer; param1.ClearNamedValues();
GH_Structure<GH_Integer> data = param0.VolatileData as GH_Structure<GH_Integer>; if (data.IsEmpty) return; foreach (GH_Integer value in data.AllData(true)) { switch (value.Value) { case 1: param1.AddNamedValue("First option for 1", 11); param1.AddNamedValue("Second option for 1", 12); param1.AddNamedValue("Third option for 1", 13); break;
case 2: param1.AddNamedValue("First option for 2", 21); param1.AddNamedValue("Second option for 2", 22); param1.AddNamedValue("Third option for 2", 23); break;
case 3: param1.AddNamedValue("First option for 3", 31); param1.AddNamedValue("Second option for 3", 32); param1.AddNamedValue("Third option for 3", 33); break; } return; } }
--
David Rutten
david@mcneel.com…
Added by David Rutten at 1:56am on December 18, 2013
radius / 3 Then field_value += 1 * (1 - 3 * test_dist ^ 2 / radius ^ 10) ElseIf test_dist >= radius / 3 And test_dist < radius Then field_value += (3 / 2) * (1 - test_dist / radius) ^ 10
Not sure yet how to reduce the new angled beam artifacts.
The question remains whether there is a superior function that avoids bulge completely so I can start rationally designing bulk objects with mere lines.
Actually, if I move a parentheses to make both powers into divisors and tweak the sliders, I get rid of nearly all bulge, while improving the corners:
If test_dist > 0 And test_dist < radius / 3 Then field_value += 1 * (1 - 3 * test_dist ^ 2 / radius ^ 10) ElseIf test_dist >= radius / 3 And test_dist < radius Then field_value += (3 / 2) * (1 - test_dist / radius ^ 10)
That I can work with!
…
etc.
Group 2 - 1, 6, 11, 16, 21 etc.
Group 3 - 2, 7, 12, 17, 22 etc.
Group 4 - 3, 8, 13, 18, 23 etc.
Group 5 - 4, 9, 14, 19, 24 etc. "
except in data, the branches start at 0, so 'group 1' is branch 0
as for the order of your points, that depends on the input prior sorting...
yrs …
the curves on surface issue it's solved seting flatten to the surface control point output. Still didnt know how to group points like:
1;1, 2;2, 3;3.....
1;2, 2;3, 3;4....
1;3, 2;4, 3;5...
....
is passable give different distance in list of point to delete
ex: point 1 - 30
point 2 - 20
point 3 - 10
...........
the point all in one list
i try a lot but didn't found the way ...