Prototyping the curve tool

This commit is contained in:
Lars Brubaker 2018-04-02 14:15:27 -07:00
parent 4106af6fe2
commit e89ca312a1
6 changed files with 142 additions and 4 deletions

View file

@ -501,12 +501,22 @@ namespace MatterHackers.MatterControl
{
var pinch = new PinchObject3D();
MeshWrapperObject3D.WrapSelection(pinch, scene);
pinch.MakeNameNonColliding();
},
Icon = AggContext.StaticData.LoadIcon("pinch.png", 16, 16),
IsEnabled = (scene) => scene.HasSelection,
},
new SceneSelectionOperation()
{
TitleResolver = () => "Curve".Localize(),
Action = (scene) =>
{
var curve = new CurveObject3D();
MeshWrapperObject3D.WrapSelection(curve, scene);
},
Icon = AggContext.StaticData.LoadIcon("curve.png", 16, 16),
IsEnabled = (scene) => scene.HasSelection,
},
new SceneSelectionOperation()
{
TitleResolver = () => "Fit to Bounds".Localize(),
Action = (scene) =>