mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-12 05:58:34 +00:00
25 lines
641 B
C#
25 lines
641 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, 5);
|
|
string script = cube.Union(sphere).ToString();
|
|
|
|
File.WriteAllLines("test.scad", new string[] { script.ToString() });
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|