|
|
@ -1,11 +1,9 @@
|
|
|
|
import { end } from 'xaop';
|
|
|
|
import { end } from 'xaop';
|
|
|
|
import { app } from '../ApplicationServices/Application';
|
|
|
|
import { app } from '../ApplicationServices/Application';
|
|
|
|
import { ReportError } from '../Common/ErrorMonitoring';
|
|
|
|
|
|
|
|
import { safeEval } from '../Common/eval';
|
|
|
|
import { safeEval } from '../Common/eval';
|
|
|
|
import { KeyWord } from '../Common/InputState';
|
|
|
|
import { KeyWord } from '../Common/InputState';
|
|
|
|
import { KeyCode } from '../Common/KeyEnum';
|
|
|
|
import { KeyCode } from '../Common/KeyEnum';
|
|
|
|
import { FixedNotZero } from '../Common/Utils';
|
|
|
|
import { FixedNotZero } from '../Common/Utils';
|
|
|
|
import { CADFiler } from '../DatabaseServices/CADFiler';
|
|
|
|
|
|
|
|
import { Board } from '../DatabaseServices/Entity/Board';
|
|
|
|
import { Board } from '../DatabaseServices/Entity/Board';
|
|
|
|
import { Curve } from '../DatabaseServices/Entity/Curve';
|
|
|
|
import { Curve } from '../DatabaseServices/Entity/Curve';
|
|
|
|
import { Polyline } from '../DatabaseServices/Entity/Polyline';
|
|
|
|
import { Polyline } from '../DatabaseServices/Entity/Polyline';
|
|
|
@ -67,27 +65,15 @@ export class CommandFillet implements Command
|
|
|
|
res2.Entity.UpdateJigMaterial();
|
|
|
|
res2.Entity.UpdateJigMaterial();
|
|
|
|
lastCu = res2.Entity as Curve;
|
|
|
|
lastCu = res2.Entity as Curve;
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
let fres = this.m_FilletUtils.Fillet(enRes1, res2);
|
|
|
|
|
|
|
|
if (fres)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let fres = this.m_FilletUtils.Fillet(enRes1, res2);
|
|
|
|
if (fres.arc)
|
|
|
|
if (fres)
|
|
|
|
JigUtils.Draw(fres.arc);
|
|
|
|
{
|
|
|
|
if (fres.cu1)
|
|
|
|
if (fres.arc)
|
|
|
|
JigUtils.Draw(fres.cu1);
|
|
|
|
JigUtils.Draw(fres.arc);
|
|
|
|
if (fres.cu2)
|
|
|
|
if (fres.cu1)
|
|
|
|
JigUtils.Draw(fres.cu2);
|
|
|
|
JigUtils.Draw(fres.cu1);
|
|
|
|
|
|
|
|
if (fres.cu2)
|
|
|
|
|
|
|
|
JigUtils.Draw(fres.cu2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (error)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
let f = new CADFiler;
|
|
|
|
|
|
|
|
f.WriteObject(enRes1.Entity);
|
|
|
|
|
|
|
|
f.Write(enRes1.Point.toArray());
|
|
|
|
|
|
|
|
f.WriteObject(enRes2.Entity);
|
|
|
|
|
|
|
|
f.Write(enRes2.Point.toArray());
|
|
|
|
|
|
|
|
ReportError(f.ToString(), "倒角失败");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
app.Editor.UpdateScreen();
|
|
|
|
app.Editor.UpdateScreen();
|
|
|
|