Deleted LinearExtrudedObject (unused)

This commit is contained in:
Michael L Smith 2016-03-10 20:28:45 -08:00
parent f2f2540741
commit 1f41470dbb
2 changed files with 0 additions and 67 deletions

View File

@ -1,66 +0,0 @@
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Transforms
{
/// <summary>
/// Linear Extrusion is a modeling operation that takes a 2D polygon as input and extends it in the third dimension. This way a 3D shape is created.
///
/// This is a limited subset of the capabilities
/// </summary>
internal class LinearExtrudedObject : SingleStatementObject
{
/// <summary>
/// Height to extrude to
/// </summary>
public double Height { get; set; } = 1.0;
//TODO: Possibly implement everything else?
//linear_extrude(height = fanwidth, center = true, convexity = 10, twist = -fanrot, slices = 20, scale = 1.0) {...}
/// <summary>
/// An object that will be extruded from 2d to 3d
/// </summary>
/// <param name="obj"></param>
/// <param name="height"></param>
public LinearExtrudedObject(OSCADObject obj, double height) : base(obj)
{
this.Height = height;
}
public override OSCADObject Clone()
{
return new LinearExtrudedObject(this.obj.Clone(), this.Height)
{
Name = this.Name
};
}
public override string ToString()
{
string extrudeCommand = String.Format("linear_extrude(height = {0})", this.Height.ToString());
var formatter = new SingleBlockFormatter(extrudeCommand, this.obj.ToString());
return formatter.ToString();
}
public override Vector3 Position()
{
throw new NotSupportedException();
}
public override Bounds Bounds()
{
throw new NotImplementedException();
}
public override void Bind(string property, Variable variable)
{
throw new NotImplementedException();
}
}
}

View File

@ -70,7 +70,6 @@
<Compile Include="Public\Spatial\Bounds.cs" />
<Compile Include="Internal\Spatial\Matrix.cs" />
<Compile Include="Internal\Transforms\HulledObject.cs" />
<Compile Include="Internal\Transforms\LinearExtrudedObject.cs" />
<Compile Include="Internal\Scripting\SingleBlockFormatter.cs" />
<Compile Include="Internal\Scripting\MultiStatementObject.cs" />
<Compile Include="Internal\Booleans\Difference.cs" />