Esempio n. 1
0
 public void SetLightPositionFromPoint(Drawing.Drawing.Point3D point3D)
 {
     _lightPoint = point3D;
     _drawing.CalculateColorMap(_lightColor, point3D);
     SetLightPositionAction = false;
     RedrawPolygons();
 }
Esempio n. 2
0
        private void textBox1_Leave(object sender, EventArgs e)
        {
            int z;// =;

            if (!Int32.TryParse(textBox1.Text, out z))
            {
                z = _lightPoint.Z;
            }
            _lightPoint = new Drawing.Drawing.Point3D()
            {
                X = _lightPoint.X, Y = _lightPoint.Y, Z = z
            };
            SetLightPositionFromPoint(_lightPoint);
        }