algorithmic modeling for Rhino
List<On3dPoint> catchers = new List<On3dPoint>();
for (int i = 0; i < parcela.Count; i++)
{
if ((parcela[i].R.Equals(255) == true && parcela[i].G.Equals(255) == true && parcela[i].B.Equals(255) == true) && (RhUtil.RhinoPointInPlanarClosedCurve(puntos[i], perimetro) != 0))
{
catchers.Add(puntos[i]);
}
}
captadores = catchers;
Tags:
//checks if red, green and blue values are the same
(parcela[i].R == parcela[i].G && parcela[i].R == parcela[i].B)
//checks if saturation is less than 12%
(parcela[i].GetSaturation() < 0.12f)
//checks if brightness is less than 12%
(parcela[i].GetBrightness() < 0.12f)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by