list (shift=1), so I have 25 lists of 5 items. When I use shift however it shifts the 25 lists instead of the 6 items in each list, so I have 24 lists of 6 items. How can I use the shift on the sublist instead of the list of lists?…
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
circles that can be populated (for each radius size) is set as an integer (or slider)
(ie. radius 1.5 = 10 , radius 3= 6, radius 6 = 6, radius 9=4)
Conditions are:
1) Each of the circle has a radius of influence,
Radius of influence = double the radius of the circle)
(3, 6, 12, 18)
2) Any overlapping circles in either: Radius of influence or the Circles are removed so that
No circles overlap.
3) There must also be 4 circles set at the corner points of the grid - These must be circles with a radius of 3 or 6
If you can do that I will be amazed as i've been trying for weeks! :(
Ive attached a sketch of what im looking for…
Tree:
{0;0;0} N = 2
{0;0;1} N = 1
{0;0;2} N = 3
{0;1;0} N = 5
{0;1;1} N = 8
{0;1;2} N = 10
If we apply the aforementioned mapping to this tree, we'll end up with the following result:
{0;0} N = 6
{0;1} N = 23
Basically {0;0;0}, {0;0;1} and {0;0;2} are combined into a single path {0;0} as we disregard the third index because "C" is no longer present in the target mapping.
Because we only use the Mapper to modify paths, we do not lose any data items, though we might lose some of the paths.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 1:03pm on August 25, 2010