Example #1
0
        static void Main(string[] args)
        {
            //makeCenterTwoByFourBracket();
            //makeSideTwoByFourBracket();
            makeDiceHolder();
            //makeACBrackets();
            makeGreatSword();
            makepaddleHandle();
            makePaddle();
            //makeDisk();
            //makeHolder();
            //makeLoop();
            //makeBadge();
            //makeCardClip();
            //makeLaserStand();
            //makeStandCap();

            var tubeMe = new Tube()
            {
                Diameter1  = Inches.One,
                Diameter2  = Inches.Half,
                Height     = Inches.One,
                Bottom     = false,
                Resolution = 100,
                //Center = true,
                WallThickness = Inches.Sixteenth
            };

            tubeMe.ToFile("tubeTest");

            //var boxMe = new Box() {
            //    Size = new Vector3(10, 10, 10),
            //    WallThickness = .5
            //};
            //boxMe.ToFile("boxtest");

            //var img = ImportedImage.FromFile("twixCrop_small.png", new ImageImportOptions()
            //{
            //    HeightMapping = ImageImportOptions.HeightMappingMode.Vertical,
            //    UseGrayScale = false,
            //    SimplificationAmount = 25
            //});
            //img.ToFile("twixCrop");

            //var img = ImportedImage.FromFile("vermont-nc.png").Scale(1, 1, Inches.Quarter + Inches.Eigth);
            //var imgPos = img.Position();z
            //var _base = new Cylinder(img.Bounds().Width + Inches.Quarter, Inches.Quarter) { Resolution = 100 };

            //var rim = _base.Clone().Scale(1, 1, 1.25) - _base.Clone().Scale(.9, .9, 3.5).Translate(0, 0, -Inches.Eigth);
            //var coaster = img + _base.Translate(imgPos.X, imgPos.Y, 0) + rim.Translate(imgPos.X, imgPos.Y, Inches.Quarter); ;


            //coaster.ToFile("seaImg").Open();

            //makePeg();

            //var diam = new Variable("mainColumn", Inches.Half);
            //var height = new Variable("overallHeight", Inches.Quarter);
            //Variables.Global.Add(diam);
            //Variables.Global.Add(height);

            //var cyl = new Cylinder(diam, diam, height);


            //var pos = cyl.Position();
            //var cyl1 = new Cylinder(1, 100, true).Translate(pos);
            //var cyl2 = new Cylinder(1, 100, true).Rotate(0, 90, 0).Translate(pos);
            //var cyl3 = new Cylinder(1, 100, true).Rotate(90, 0, 0).Translate(pos);
            //var axisHelper = cyl1.Union(cyl2, cyl3).Color("Red");

            ////var topCorner = new Sphere().Translate(obj.Bounds().TopRight);
            ////var botCorner = new Sphere().Translate(obj.Bounds().BottomLeft);

            //(cyl + axisHelper).ToFile("test.scad").Open();

            //Console.ReadKey();
        }