Any chance of a % notation that allows for the selection of a modulo pattern of branchs/items i.e. {0;1}[%3] gets b,f,j,m,q,t,x
And {0;1}[%!3] gets you the flip side
Added by Danny Boyes at 12:42am on November 4, 2013
What if for every set {0}, {1}, etc. i have 3 items that are always sorted in a different way. F.ex. {0} i need 1, in {1} i need 2 and in {3} i need 0?
hope anyone can help
Added by Stefano Rossi at 6:26am on November 21, 2013
The best way is to use a C# or a VB component to transpose these
lists. I think in C# you can use transpose directly. You can ask this
on the VB/C# forum on our new website, www.grasshopper3d.com
- Scott
On May 27, 3:56 am, Tonsgaard wrote:
> Being a long time user of Generative Components trying to use
> grasshopper i miss the "transpose" command.
> I have a point list like this:
>
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
>
> and a want to transpose dimensions to:
>
> 1, 1, 1, 1, 1
> 2, 2, 2, 2, 2
> 3, 3, 3, 3, 3
> 4, 4, 4, 4, 4
> 5, 5, 5, 5, 5
>
> Surely I am not the first in need of this...
> how would i go about and do this...? I suppose its quite easy in VB
> script, but being used to GC's C# like language, I kinda dont know how
> to do this...
>
> thanks...
>
> Tonsgaard…
Is it like this:
If a beam is connected from nod 0 to 1 and from 1 to 4. Another from 2 to 3 and from 3 to 5.
Node 1 and 3 have the same coordinates, but are they rigidly connected or not?
rsection part.
I plan to set up a unit plane and then use a separate function to reset it to the correct location etc.
Any ideas to why the code below might cause the crash?
Dim CornerPts(3) As On3dPoint
CornerPts(0) = New On3dPoint(0, 0, 0)
CornerPts(1) = New On3dPoint(1, 0, 0)
CornerPts(2) = New On3dPoint(1, 1, 0)
CornerPts(3) = New On3dPoint(0, 1, 0)
Dim CutPlane As New OnSurface = RhUtil.RhinoCreateSurfaceFromCorners(CornerPts(0), CornerPts(1), CornerPts(2), CornerPts(3))
print(cutplane.IsValid)…