mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +00:00
Shifted all publicly visible classes to the OSCADSharp namespace
This commit is contained in:
parent
61fc5cf227
commit
301e92dfff
@ -1,13 +1,4 @@
|
||||
using OSCADSharp.Scripting;
|
||||
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
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using System.Linq;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
@ -60,7 +59,7 @@ namespace OSCADSharp.UnitTests
|
||||
{
|
||||
var diff = new Cube() - new Sphere();
|
||||
|
||||
diff.Bind("SomeProperty", new Scripting.Variable("test", 5));
|
||||
diff.Bind("SomeProperty", new Variable("test", 5));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
{
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using Moq;
|
||||
using OSCADSharp.Files;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using Moq;
|
||||
using OSCADSharp.Files;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using OSCADSharp.Scripting;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using OSCADSharp.Scripting;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Solids;
|
||||
|
||||
namespace OSCADSharp.UnitTests
|
||||
{
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -65,7 +64,7 @@ namespace OSCADSharp.UnitTests
|
||||
public void Mirror_CanBindNormal()
|
||||
{
|
||||
var cube = new Cube(5, 20, 15).Mirror(1, 0, 0);
|
||||
cube.Bind("normal", new Scripting.Variable("myVar", new Vector3(1, 0, 0)));
|
||||
cube.Bind("normal", new Variable("myVar", new Vector3(1, 0, 0)));
|
||||
|
||||
string script = cube.ToString();
|
||||
Assert.IsTrue(script.Contains("mirror(myVar)"));
|
||||
@ -74,7 +73,7 @@ namespace OSCADSharp.UnitTests
|
||||
[TestMethod]
|
||||
public void Mirror_CanBindNormalWithParameter()
|
||||
{
|
||||
var cube = new Cube(5, 20, 15).Mirror(new Scripting.Variable("myVar", new Vector3(1, 0, 0)));
|
||||
var cube = new Cube(5, 20, 15).Mirror(new Variable("myVar", new Vector3(1, 0, 0)));
|
||||
|
||||
string script = cube.ToString();
|
||||
Assert.IsTrue(script.Contains("mirror(myVar)"));
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Solids;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Bindings
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// An object whose properties can be bound to variables
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Files
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Invokes OpenSCAD actions on output files
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Files
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A class that takes text and writes to file
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
<Compile Include="Scripting\StatementBuilder.cs" />
|
||||
<Compile Include="Scripting\Variable.cs" />
|
||||
<Compile Include="Settings\Settings.cs" />
|
||||
<Compile Include="Sizes.cs" />
|
||||
<Compile Include="Inches.cs" />
|
||||
<Compile Include="Bindings\BindableVector.cs" />
|
||||
<Compile Include="Spatial\Bounds.cs" />
|
||||
<Compile Include="Spatial\Matrix.cs" />
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Scripting
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A value for setting object properties in script output to
|
||||
|
||||
@ -6,7 +6,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Scripting
|
||||
namespace OSCADSharp
|
||||
{
|
||||
internal static class VariableCalculator
|
||||
{
|
||||
|
||||
@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Scripting
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A collection of names/values for variables
|
||||
|
||||
@ -7,7 +7,7 @@ using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Bindings;
|
||||
using OSCADSharp.Scripting;
|
||||
|
||||
namespace OSCADSharp.Solids
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A Cube geometry
|
||||
|
||||
@ -7,7 +7,7 @@ using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Scripting;
|
||||
using OSCADSharp.Bindings;
|
||||
|
||||
namespace OSCADSharp.Solids
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A Cylinder geometry
|
||||
|
||||
@ -9,7 +9,7 @@ using System.Collections.Concurrent;
|
||||
using System.Reflection;
|
||||
using OSCADSharp.Bindings;
|
||||
|
||||
namespace OSCADSharp.Solids
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A Sphere geometry
|
||||
|
||||
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
using OSCADSharp.Spatial;
|
||||
using OSCADSharp.Bindings;
|
||||
|
||||
namespace OSCADSharp.Solids
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Create text using fonts installed on the local system or provided as separate font file.
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OSCADSharp.Spatial
|
||||
namespace OSCADSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A set of boundaries
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user