|
|
|
@ -13,6 +13,7 @@ import { FeedingToolPath } from "../GraphicsSystem/ToolPath/FeedingToolPath";
|
|
|
|
|
import { FaceDirection, IHighSealedItem } from "../UI/Store/BoardInterface";
|
|
|
|
|
import { Line } from "../DatabaseServices/Entity/Line";
|
|
|
|
|
import { Curve } from "../DatabaseServices/Entity/Curve";
|
|
|
|
|
import { arrayLast } from "../Common/ArrayExt";
|
|
|
|
|
|
|
|
|
|
/**板件轮廓数据 */
|
|
|
|
|
export interface IContourData
|
|
|
|
@ -96,6 +97,9 @@ export namespace Production
|
|
|
|
|
let offsetTanslation = outline.BoundingBox.min;
|
|
|
|
|
outline.Position = outline.Position.sub(offsetTanslation);
|
|
|
|
|
let outlinePtsBul = ConverToPolylineAndSplitArc(outline);
|
|
|
|
|
//外轮廓去掉最后的闭合点
|
|
|
|
|
outlinePtsBul.pts.pop();
|
|
|
|
|
outlinePtsBul.buls.pop();
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
info: GetBoardInfo(br),
|
|
|
|
@ -204,6 +208,9 @@ export namespace Production
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result.pts.push(arrayLast(ptsBuls.pts));
|
|
|
|
|
result.buls.push(arrayLast(ptsBuls.buls));
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|