Adding sliders to all primitives

This commit is contained in:
LarsBrubaker 2021-09-12 20:23:40 -07:00
parent 3ac482f5e9
commit c36d270c92
23 changed files with 205 additions and 56 deletions

View file

@ -36,6 +36,7 @@ using MatterHackers.Localizations;
using MatterHackers.MatterControl.DesignTools.Operations;
using MatterHackers.MatterControl.PartPreviewWindow;
using MatterHackers.PolygonMesh;
using MatterHackers.VectorMath;
using Newtonsoft.Json;
namespace MatterHackers.MatterControl.DesignTools
@ -74,9 +75,11 @@ namespace MatterHackers.MatterControl.DesignTools
/// This is the actual serialized with that can use expressions
/// </summary>
[MaxDecimalPlaces(2)]
[Slider(1, 400, Easing.EaseType.Quadratic, snapDistance: 1)]
public DoubleOrExpression Width { get; set; } = 20;
[MaxDecimalPlaces(2)]
[Slider(1, 400, Easing.EaseType.Quadratic, snapDistance: 1)]
public DoubleOrExpression Depth { get; set; } = 20;
public static async Task<BoxPathObject3D> Create()