|
|
@ -160,20 +160,18 @@ export class DrawClosingStrip implements Command
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
br = Board.CreateBoard(width, size.x, thickness,
|
|
|
|
br = Board.CreateBoard(width, size.x, thickness, BoardType.Behind);
|
|
|
|
BoardType.Behind);
|
|
|
|
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
br.BoardProcessOption.lines = LinesType.Reverse;
|
|
|
|
br.BoardProcessOption.lines = LinesType.Reverse;
|
|
|
|
pos.set(min.x, min.y + thickness + frontShrink, max.z);
|
|
|
|
pos.set(min.x, min.y + thickness + frontShrink, max.z);
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
br2 = Board.CreateBoard(size.x, opt.fzWidth, opt.fzThickness,
|
|
|
|
br2 = Board.CreateBoard(size.x, opt.fzWidth, opt.fzThickness, BoardType.Layer);
|
|
|
|
BoardType.Layer);
|
|
|
|
|
|
|
|
br2.Position = new Vector3(max.x, min.y + frontShrink + thickness, max.z);
|
|
|
|
br2.Position = new Vector3(max.x, min.y + frontShrink + thickness, max.z);
|
|
|
|
br2.Name = "上收口条";
|
|
|
|
br2.Name = "上收口条";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
br.Name = "上收口条";
|
|
|
|
br.Name = store.m_Option.brName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -190,6 +188,7 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
|
|
|
|
|
|
|
if (opt.boardRelative === BrRelativePos.Left)
|
|
|
|
if (opt.boardRelative === BrRelativePos.Left)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
if (opt.striptype === StripType.H)
|
|
|
|
if (opt.striptype === StripType.H)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pos.set(min.x - width, min.y + thickness + frontShrink, min.z);
|
|
|
|
pos.set(min.x - width, min.y + thickness + frontShrink, min.z);
|
|
|
@ -203,10 +202,11 @@ export class DrawClosingStrip implements Command
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pos.copy(min.clone().add(new Vector3(-thickness, frontShrink)));
|
|
|
|
pos.copy(min.clone().add(new Vector3(-thickness, frontShrink)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
br.Name = "左收口条";
|
|
|
|
br.Name = store.m_Option.brName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
if (opt.striptype === StripType.H)
|
|
|
|
if (opt.striptype === StripType.H)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pos.set(max.x, min.y + thickness + frontShrink, min.z);
|
|
|
|
pos.set(max.x, min.y + thickness + frontShrink, min.z);
|
|
|
@ -220,7 +220,7 @@ export class DrawClosingStrip implements Command
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pos.copy(min.clone().add(new Vector3(0, frontShrink))).setX(max.x);
|
|
|
|
pos.copy(min.clone().add(new Vector3(0, frontShrink))).setX(max.x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
br.Name = "右收口条";
|
|
|
|
br.Name = store.m_Option.brName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
br.BoardProcessOption = store.BoardProcessOption;
|
|
|
|
}
|
|
|
|
}
|
|
|
|