hi, i want to split a list in as much parts as the parameter (slider) shows.if the slider shows 3 then in three parts, if the slider shows 5 then in 5 parts etc...Is it possible?thanks
hink you need recursion to modify the random seed; many other ways to accomplish that (use the length of each curve as the seed, for example).
Using multiples of twelve makes it harder for me to grasp the essence of the matter; another way of looking at it is that you want to generate random integers from 2 to 5 (24,36, 48 and 60) and have them add up exactly to curve lengths of 5 (x12=60), 9 (x12=108) or 14 (x12=168).
So you want to generate random numbers until their sum ('Mass Addition') plus 5 is equal to or greater than the curve length (5, 9 or 14). The last number in the series is then not random but just the difference between the two.
For example, for curve length = 5 (x12=60), there are only three possible numbers that can be used as the first in the sequence: 2, 3 or 5. If it's 5, you're done. If it's 2, the second number is 3 (5-2), if it's 3, the second number is 2 (5 - 3). You can't use '4' at all because the remainder, 1 (x12=12) isn't one of your solution options.
There is no point in generating the last number randomly, eh?
P.S. You didn't use 'Internalize data' for the 'Curve (Crv)' param in your GH file.…
Added by Joseph Oster at 2:29pm on September 12, 2015
ving the 5 axis translations.
I have worked with 3 axis CNC and G-Codes extensively, but not with a 5 axis though. Would be nice if you post a bit more info about it.…
Added by Victor Leung at 3:42am on February 28, 2013
3} N=2
....
{527} N=4
What I want to do is figure out the same the item in group A and retrieve their branch index so that I can get the corresponding item in group A. Is there any way to make it?…
{4}-0;3
{5}-6;7
{6}-5;7
{7}-5;6
Here it can be shown that there are two subgraphs containing 0,1,2,3,4 and 5,6,7. How can I use spiderweb (either using scripting or the components) to give me this result when I have many more vertices??
Thanks,
Sam…
y, I'm trying to create a definition that will allow me to move a series of planes different amounts in the x or y direction, based on there heights [z].So for example if the plane is 3' high or less it will move only 1' in the x and/or y directionif the plane is between 3'-5' then it will move 2' in the x and/or y directionif the plane is between 5'-10' it will move 3' in the x and/or y directionthoughts?…
im myTree As New DataTree (Of plane) Dim i As Int32
For i = 0 To 4 Dim path As New GH_Path(i) myTree.Add(x, path) Next
A = myTree
Any help would be appreciated
Regards…
of lines, etc) but I can't see a way to add the text I need where I need it. If I could get each line for the print run to generate automatically, I can put the rest in manually, so just need something like:
... ; I would do the previous to this manuallyG1 X10 Y5 Z3
G1 X5 Y5 E5
G1 X5 Y15 E10
... ; I would do the rest manually
for a 5 mm line from [10, 5, 3] to [5, 5, 3], followed by a 10mm line from there to [5, 15, 3]. Any pointers greatly appreciated.
Ewan…