public async void FlipWithInteractive(List <CadFigure> rootFigList) { await Task.Run(() => { Controller.StartEdit(); var res = InputLine(); if (res.state != InteractCtrl.States.END) { Controller.AbendEdit(); return; } if ((res.p1 - res.p0).IsZero()) { Controller.AbendEdit(); ItConsole.println("Error: Same point"); return; } Vector3d normal = CadMath.Normal( res.p1 - res.p0, (Controller.DC.ViewDir)); FlipWithPlane(rootFigList, res.p0, normal); RunOnMainThread(() => { Controller.EndEdit(); Controller.Redraw(); }); }); }
public void MoveKeyUp() { if (IsStarted) { Controller.EndEdit(); } IsStarted = false; Delta = Vector3d.Zero; EditFigList = null; }