2016-02-14 11:22:17 -08:00

25 lines
662 B
C#

using OSCADSharp.Solids;
using OSCADSharp.Transforms;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.ConsoleTests
{
class Program
{
static void Main(string[] args)
{
var cube = new Cube(null, true).Translate(10, 0, 5).Scale(1, 1, 5);
var sphere = new Sphere().Mimic(cube).Translate(0, 0, 10);
string script = cube.Minkowski(sphere, new Cylinder()).ToString();
File.WriteAllLines("test.scad", new string[] { script.ToString() });
Console.ReadKey();
}
}
}