t. there the lists of points are "multiplied" to compare them. eg 1000 lines will make 2000 start+endpoints, compared to around 1500 points makes 2000*1500=3*10^6 list entries. and there gh runs out of memory.…
ery subsequent curve, so for 5000 lines you end up performing ~ (5000 * 4999)/2 = 12497500 intersections. This takes a good 20 seconds on my machine.
Once you have a set of all the curve indices involved in intersections, you can cull based on those indices:
…
Added by David Rutten at 6:43am on December 3, 2014
be optimized depending on the cloud size.
Step 2 could be repeated (increasing slider value on each step), or completely removed if cloud enough small.
In this case, 5000 points, 1-2-3 seems as fast as 1-3 ....
Bye
…
3500
0;2 5000
0;3 1500
etc
this did not work, but then figured to provide 1 by 1 lists like you suggested, by duplicating accordingly E,I,As. It would be nice though the components to work on list or tree access, unless this causes problems.
An exception is the bar self weight component, which although provided an 1 by 1 lists input it outputs the following, working in cross reference i think,
my workaround was to graft inputs, flatten the output, in order to match the items one by one.
than you again
best
alex…
ck, the second has just that white spot. But the vertex color is not assigned correctly (is there a point where I mess with the order?)
Any suggestions?
The script is :
import rhinoscriptsyntax as rsimport colorsys
rs.Command("_selmesh")rs.Command("unweld 0")rs.UnselectAllObjects
strObject = rs.GetObject("Select mesh", 32)arrFaces = rs.MeshFaces(strObject)color = rs.MeshVertexColors(strObject)
rs.EnableRedraw (False)
i = 0arrFace = []
while i <= len(arrFaces)-3: arrFace.append(arrFaces[i]) arrFace.append(arrFaces[i+1]) arrFace.append(arrFaces[i+2]) arrFace.append(arrFaces[i+3]) print(color[i]) red = rs.ColorRedValue(color[i]) blue = rs.ColorBlueValue(color[i]) green = rs.ColorGreenValue(color[i]) realcolor = colorsys.rgb_to_hls(red, green, blue) rs.AddText(str(realcolor[1]),arrFaces[i],5000) i = i + 4 arrFace = []
…
Grasshopper become unresponsive and after an hour nothing has happened. For me this feels like something is wrong.
Maybe I have some settings the wrong way? I run in wireframe mode, both R & GH. Is there some kind of tolerance or mesh level settings that I'm forgetting about?
If I enter a setting where the sDiff does not work, it will calculate the result pretty fast btw.…
Added by Pete Bell at 1:34am on September 25, 2012