예제 #1
0
        public EyePair(ModelVisual3D model)
        {
            _model = model;

            _leftEye = new Ball();
            _rightEye = new Ball();

            _leftEye.Offset = new Point3D(3.0, 0.0, 70.0);
            _rightEye.Offset = new Point3D(-3.0, 0.0, 70.0);

            _model.Children.Add(_leftEye);
            _model.Children.Add(_rightEye);
        }
예제 #2
0
 public void BuildSlice( string imageSrc, double offsetZ )
 {
     Point3D p3D = new Point3D(0, 0, offsetZ);
     for (int x = 0; x < 3; x++)
     {
         for (int y = -1; y < 2; y++)
         {
             Ball ball = new Ball();
             ball.ImageSource = imageSrc;
             p3D.X = (x * 2.0) - 2.0;
             p3D.Y = (y * 2.0);
             ball.Offset = p3D;
             Console.WriteLine(p3D.ToString());
             _mv3D.Children.Add(ball);
         }
     }
 }