Example #1
0
 public static void DrawFacette(Facette facette, Bitmap img, Color pen)
 {
     facette.TraceFilDeFer(img, pen);
     facette.RemplissageFacette(new List <Point>()
     {
         facette.GermeDeDEpart()
     }, new List <Point>(), img, pen, 0);
 }
Example #2
0
        public static void DrawFacette(Bitmap img, Color pen)
        {
            Facette facette = new Facette(
                new Point(50, -20, 0),
                new Point(100, 100, 0),
                new Point(-50, 20, 0),
                new Point(-100, -100, 0));

            facette = facette.RotationZ(45);
            facette = facette.Homothetie(new Point(0, 0, 0), 0.4);
            facette = facette.Translation(50, 50, 0);
            facette.TraceFilDeFer(img, pen);
            facette.RemplissageFacette(new List <Point>()
            {
                facette.GermeDeDEpart()
            }, new List <Point>(), img, pen, 0);
        }
Example #3
0
        public static void DrawFacettesFilDeFer(Bitmap img, Color pen)
        {
            Color   bluePen = new Color(0, 0, 255);
            Facette facette = new Facette(
                new Point(-50, 100, 0),
                new Point(50, 100, 0),
                new Point(50, -100, 0),
                new Point(-50, -100, 0));

            facette.TraceFilDeFer(img, bluePen);

            Facette f = facette.Translation(15, 15, 0);

            f.TraceFilDeFer(img, pen);

            Facette f2 = facette.RotationZ(tetaZ: 45);

            f2.TraceFilDeFer(img, pen);

            Facette f3 = facette.Homothetie(new Point(), 0.25);

            f3.TraceFilDeFer(img, pen);
        }
Example #4
0
 public static void DrawFacettesFilDeFer(Facette facette, Bitmap img, Color pen)
 {
     facette.TraceFilDeFer(img, pen);
 }