|
|
@ -5,6 +5,7 @@ import { JigUtils } from "../Editor/JigUtils";
|
|
|
|
import { PromptStatus } from "../Editor/PromptResult";
|
|
|
|
import { PromptStatus } from "../Editor/PromptResult";
|
|
|
|
import { MoveMatrix } from "../Geometry/GeUtils";
|
|
|
|
import { MoveMatrix } from "../Geometry/GeUtils";
|
|
|
|
import { GetMirrorMat } from "../Common/Matrix4Utils";
|
|
|
|
import { GetMirrorMat } from "../Common/Matrix4Utils";
|
|
|
|
|
|
|
|
import { Curve } from "../DatabaseServices/Entity/Curve";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class MirrorCommand implements Command
|
|
|
|
export class MirrorCommand implements Command
|
|
|
@ -12,7 +13,8 @@ export class MirrorCommand implements Command
|
|
|
|
async exec()
|
|
|
|
async exec()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let enRes = await app.Editor.GetSelection({
|
|
|
|
let enRes = await app.Editor.GetSelection({
|
|
|
|
Msg: "选择对象", UseSelect: true
|
|
|
|
Msg: "选择对象(暂仅支持曲线)", UseSelect: true,
|
|
|
|
|
|
|
|
Filter: { filterTypes: [Curve] }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (enRes.Status === PromptStatus.Cancel)
|
|
|
|
if (enRes.Status === PromptStatus.Cancel)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|