}
0,3
{7}
1,2
{8}
1,3
{9}
2,3
{10}
0,1,2
{11}
0,1,3
{12}
0,2,3
{13}
1,2,3
{14}
0,1,2,3
I want it to be parametric so I can have it for any set of indexes
I have tried to solve it with points and then removing duplicate points but it's not helping much
any help is truly appreciated
…
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
y 26, 2012. Loop_3 is the installation done by a group of students to carry a selection of pictures and models from past year's projects.
The project was entirely developed and engineered with Rhinoceros and Grasshopper (using Kangaroo and MeshEdit plugins plus a couple of custom components)
More info: http://issuu.com/ale2x72/docs/loop_3…
I extract the first two with a "Redim Preserve t(1)" command.
In the first case, the redim is correct, Line 7 = Line 2 and Line 8 = Line 3. It just kept the first two values like it is supposed to be.
But, for the second curve starting Line 9, some t values are messed up after the Redim. Line 16 = Line 17 despite Line 11 was different from Line 12. That's what is creating a problem later in the Split.
Weird.
…