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