Exemplo n.º 1
0
        public void DrawTop(Canvas c)
        {
            Polygon rec = new Polygon();
               SkeletonPoint left_front = new SkeletonPoint(), right_front = new SkeletonPoint(), left_back = new SkeletonPoint(), right_back = new SkeletonPoint();
            right_front.X = right_up.X; right_front.Y = right_up.Z - 0.1f; right_front.Z = right_up.Y;
            right_back.X = right_up.X; right_back.Y = right_up.Z + 0.1f; right_back.Z = right_up.Y;
            left_front.X = left_up.X; left_front.Y = left_up.Z - 0.1f; left_front.Z = left_up.Y;
            left_back.X = left_up.X; left_back.Y = left_up.Z + 0.1f; left_back.Z = left_up.Y;

            rec.Points.Add(left_front.GetDisplayPositionVGA(Prototype.nui, c));
            rec.Points.Add(right_front.GetDisplayPositionVGA(Prototype.nui, c));
            rec.Points.Add(right_back.GetDisplayPositionVGA(Prototype.nui, c));
            rec.Points.Add(left_back.GetDisplayPositionVGA(Prototype.nui, c));
        }