From 1f41470dbbcb25fee16a09f5300f95f121a25089 Mon Sep 17 00:00:00 2001 From: Michael L Smith Date: Thu, 10 Mar 2016 20:28:45 -0800 Subject: [PATCH] Deleted LinearExtrudedObject (unused) --- .../Transforms/LinearExtrudedObject.cs | 66 ------------------- OSCADSharp/OSCADSharp/OSCADSharp.csproj | 1 - 2 files changed, 67 deletions(-) delete mode 100644 OSCADSharp/OSCADSharp/Internal/Transforms/LinearExtrudedObject.cs diff --git a/OSCADSharp/OSCADSharp/Internal/Transforms/LinearExtrudedObject.cs b/OSCADSharp/OSCADSharp/Internal/Transforms/LinearExtrudedObject.cs deleted file mode 100644 index 19f5f2b..0000000 --- a/OSCADSharp/OSCADSharp/Internal/Transforms/LinearExtrudedObject.cs +++ /dev/null @@ -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 -{ - /// - /// 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 - /// - internal class LinearExtrudedObject : SingleStatementObject - { - /// - /// Height to extrude to - /// - 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) {...} - - /// - /// An object that will be extruded from 2d to 3d - /// - /// - /// - 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(); - } - } -} diff --git a/OSCADSharp/OSCADSharp/OSCADSharp.csproj b/OSCADSharp/OSCADSharp/OSCADSharp.csproj index fe551bf..06f53b8 100644 --- a/OSCADSharp/OSCADSharp/OSCADSharp.csproj +++ b/OSCADSharp/OSCADSharp/OSCADSharp.csproj @@ -70,7 +70,6 @@ -