15 and >90 then add "red" to the strings/int list.
pseudocode :
create list of strings
load bitmap from file path
get bitmap height
get bitmap width
count pixels -> (width*height) -> create a new int (pixelCount)
check every pixels color :
loop till i = pixelCount-1
if hue < 20 and >80 then add "red" to string list
if hue >20 and <40 then add ... etc.
output string list
…
thankssssss
.74-.80 may is ok not big differents .. but i have to control each group of triangles :)
___
sorry the version is
rhino 4.9
gr 0.8.0004 version
thanks :)
Added by architecture at 6:26am on December 20, 2011
ven if the number of panels inside each cell varies. The current solution works when the number of panels inside each cell is always two or other same numbers, but it wouldn't work if the number of panels inside frames are different in each cell. It would be perfect, if numbering of panels are automatically added correctly next to the cell number based on the number of panel division instead of feeding the fixed number.
To take an example, let's assume that the cell #80 has three panels and the #81 has two ones. In this case, three panels within the cell #80 would be numbered like 80-1, 80-2, 80-3, while two panels within the #81 would be numbered such as 81-1 and 81-2 automatically. …
rence not set to an instance of an object. (line: 80)
Both .dlls appear to have been successfully imported.
Thanks in advance,
Charles
RStatSystem rs = ri as RStatSystem;
List<Line> slines = new List<Line>();
foreach(RStatBeam b0 in rs.Beams) { <------ line 80
if (b0.StiffnessMultiplier < 0.3) continue;
slines.Add(new Line(b0.P0.ToPoint3d(), b0.P1.ToPoint3d())); }
A = slines;
…