Ejemplo n.º 1
0
        public CustomFace(CustomTriangle triangleA, CustomTriangle triangleB)
        {
            this.triangleA = triangleA;
            this.triangleB = triangleB;

            Random random = new Random(Guid.NewGuid().GetHashCode());

            int r = random.Next(0, 255);
            int g = random.Next(0, 255);
            int b = random.Next(0, 255);

            Color colorToApply = Color.FromArgb(r, g, b);

            this.color = colorToApply;

            UpdateAverageZ();
        }
Ejemplo n.º 2
0
 public void UdateTriangles(CustomTriangle triangleA, CustomTriangle triangleB)
 {
     this.triangleA = triangleA;
     this.triangleB = triangleB;
 }