|
|
|
@ -27,16 +27,6 @@ export class Command_Trim implements Command
|
|
|
|
|
//剪刀对象
|
|
|
|
|
let kniefCus: Array<Curve> = [];
|
|
|
|
|
fillerCus(knifeSsRes.SelectSet, kniefCus);
|
|
|
|
|
// if (kniefCus.length === 0)
|
|
|
|
|
// {
|
|
|
|
|
// for (let en of app.m_Database.ModelSpace.objectCol)
|
|
|
|
|
// {
|
|
|
|
|
// if (en instanceof Curve)
|
|
|
|
|
// {
|
|
|
|
|
// kniefCus.push(en);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
@ -131,20 +121,21 @@ export class Command_Trim implements Command
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (cu.constructor.name === lastCu.constructor.name)
|
|
|
|
|
{
|
|
|
|
|
if (cu instanceof Polyline)
|
|
|
|
|
cu.CloseMark = false;
|
|
|
|
|
cu.CopyFrom(lastCu);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cu.Erase();
|
|
|
|
|
app.m_Database.ModelSpace.Append(lastCu);
|
|
|
|
|
}
|
|
|
|
|
// if (cu.constructor.name === lastCu.constructor.name)
|
|
|
|
|
// {
|
|
|
|
|
// if (cu instanceof Polyline)
|
|
|
|
|
// cu.CloseMark = false;
|
|
|
|
|
// cu.CopyFrom(lastCu);
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
cu.Erase();
|
|
|
|
|
|
|
|
|
|
lastCu.ColorIndex = 6;
|
|
|
|
|
app.m_Database.ModelSpace.Append(lastCu);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
app.m_Editor.UpdateScreen();
|
|
|
|
|