public ReactionDiffusion(Mesh x, Curve y) { Vertice3.CreateCollection(x, out vs); Random rnd = new Random(); for (int i = 0; i < vs.Count; i++) { Point3d P1 = new Point3d(vs[i].pos.X, vs[i].pos.Y, 0); if (y.Contains(P1) == Rhino.Geometry.PointContainment.Inside) { vs[i].U = 0.5 * (rnd.NextDouble() * 2); vs[i].V = 0.25 * (rnd.NextDouble() * 2); } } }