|
|
|
@ -166,8 +166,16 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
pos.set(min.x, min.y + thickness + frontShrink, max.z);
|
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
|
{
|
|
|
|
|
br2 = Board.CreateBoard(size.x, opt.fzWidth, opt.fzThickness, BoardType.Layer);
|
|
|
|
|
br2.Position = new Vector3(max.x, min.y + frontShrink + thickness, max.z);
|
|
|
|
|
if (opt.FuZhuType === StripType.H)
|
|
|
|
|
{
|
|
|
|
|
br2 = Board.CreateBoard(size.x, opt.fzWidth, opt.fzThickness, BoardType.Layer);
|
|
|
|
|
br2.Position = new Vector3(max.x, min.y + frontShrink + thickness, max.z);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
br2 = Board.CreateBoard(opt.fzWidth, size.x, opt.fzThickness, BoardType.Behind);
|
|
|
|
|
br2.Position = new Vector3(min.x, min.y + frontShrink + thickness + opt.fzThickness, max.z);
|
|
|
|
|
}
|
|
|
|
|
br2.Name = "上收口条";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -181,7 +189,10 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
{
|
|
|
|
|
br = Board.CreateBoard(size.z, width, thickness, BoardType.Behind);
|
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
|
br2 = Board.CreateBoard(size.z, opt.fzWidth, opt.fzThickness, BoardType.Vertical);
|
|
|
|
|
if (opt.FuZhuType === StripType.V)
|
|
|
|
|
br2 = Board.CreateBoard(size.z, opt.fzWidth, opt.fzThickness, BoardType.Vertical);
|
|
|
|
|
else
|
|
|
|
|
br2 = Board.CreateBoard(size.z, opt.fzWidth, opt.fzThickness, BoardType.Behind);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
br = Board.CreateBoard(size.z, width, thickness, BoardType.Vertical);
|
|
|
|
@ -194,7 +205,10 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
pos.set(min.x - width, min.y + thickness + frontShrink, min.z);
|
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
|
{
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(-opt.fzThickness, frontShrink + thickness));
|
|
|
|
|
if (opt.FuZhuType === StripType.V)
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(-opt.fzThickness, frontShrink + thickness));
|
|
|
|
|
else
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(- opt.fzWidth, frontShrink + thickness + opt.fzThickness));
|
|
|
|
|
br2.Name = "左收口条";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -212,7 +226,10 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
pos.set(max.x, min.y + thickness + frontShrink, min.z);
|
|
|
|
|
if (opt.isDrawFuZhu)
|
|
|
|
|
{
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(0, frontShrink + thickness)).setX(max.x);
|
|
|
|
|
if (opt.FuZhuType === StripType.V)
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(0, frontShrink + thickness)).setX(max.x);
|
|
|
|
|
else
|
|
|
|
|
br2.Position = min.clone().add(new Vector3(0, frontShrink + thickness + opt.fzThickness)).setX(max.x);
|
|
|
|
|
br2.Name = "右收口条";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -240,6 +257,8 @@ export class DrawClosingStrip implements Command
|
|
|
|
|
br.Position = pos;
|
|
|
|
|
//更新总空间
|
|
|
|
|
totalSpace.union(br.BoundingBox);
|
|
|
|
|
if (br2)
|
|
|
|
|
totalSpace.union(br2.BoundingBox);
|
|
|
|
|
|
|
|
|
|
for (let b of brs)
|
|
|
|
|
{
|
|
|
|
|