as follows.
We have a grid which consists of a collection of columns, where each column consists of a list of points. You said flattening is out of the question, so we need to cull items from each list individually.
Let's say our culling pattern is KDDDKDD (repeat as needed). K = Keep, D = Ditch. If a column contains 18 points, the pattern needs to be repeated until it is 18 items long. In this case:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
K D D D K D D K D D D K D D K D D D
We can now cull each column, but they will all be culled in the same way. By shifting the pattern one more index for each column, we can cycle the culling.
The fix incidentally is to Shift the pattern PRIOR to repeating it. Then it works as expected:
--
David Rutten
david@mcneel.com
Tirol, Austria…
Added by David Rutten at 2:49pm on October 2, 2013
989e-044e8580d9cf"; //this is the grasshopper GUIDplugin = rhino.GetPlugInObject(pluginId, pluginId); // rhino is a COM object representing a rhino5 instanceplugin.OpenDocument("D:\MANUEL\Desktop\debugging.gh");
when running the OpenDocument method a window pops up with the following message
Grasshopper breakpointInvalid parsing operation inn GH_DigitNumber.Value
Running equivalent code in the RhinoPythonEditor works well.Please note that "plugin" in the code is an instance of "GH_RhinoScriptInterface" from the graashopper API.
Thanks.Manuel…
0));
RhinoDoc.ActiveDoc.Objects.AddLinearDimension(d);
Vb.Net
Dim d as New LinearDimension(Plane.WorldXY, New Point2d(10, 10), New Point2d(-10, 10), New Point2d(-5, 0))
RhinoDoc.ActiveDoc.Objects.AddLinearDimension(d)
- Giulio
______________
giulio@mcneel.com
McNeel Europe, Barcelona…
trude component as at present it is to short to boolean all of the edges of so you solid difference output is giving you 3 surfaces and not just the middle 1. Best way to do this is just click on D of the extrude then manage vector lenght and increase the number to 4 say (thats what i did)
hope this helps
matt…
Added by Matt Gaydon at 1:33am on February 2, 2010
It could look like this in a panel
{0}
0 - A
1 - B
{1}
0 - C
1 - D
{2}
0 - E
1 - F
question: can you operate on elements between branches?
By default, when you apply polyline, it will connect the elements inside their branch. But how do we connect '{0} 0 - A' with '{1} 0 - B' and '{2} 0 - C'?
2)If we have 6 elements (A,B,C,D,E,F) at the same level or issued from a flatten operation, how do we create a tree like this one:
{0}
0 - A
1 - B
{1}
0 - C
1 - D
{2}
0 - E
1 - F
?
3) a work around would be to reverse the branch:
as the following transformation:
from this list:
{0}
0 - A
1 - B
{1}
0 - C
1 - D
{2}
0 - E
1 - F
that would transform in this one
{0}
0 - A
1 - C
2 - E
{1}
0 - B
1 - D
2 - F
?
4) Can we do such operation:
from this list:
{0;0}
0 - A
{0;1}
0 - B
{1;0}
0 - C
{1;1}
0 - D
{2;0}
0 - E
{2;1}
0 - F
to
{0}
0 - A
1 - B
{1}
0 - C
1 - D
{2}
0 - E
1 - F
5) I saw in a previous discussion in the VB# corner (about grid) that David was suggesting using some methods but I don't know how to use the "GH_Path" and the "Grasshopper.DataTree" object? is there other methods which are not mention either in SDK doc and Primer Grasshopper hand book?
Many thanks…