|
|
|
@ -66,11 +66,8 @@ class SetSmoothEdgeFaces extends BoardGetFace
|
|
|
|
|
{
|
|
|
|
|
for (let f1 of this.Faces)
|
|
|
|
|
{
|
|
|
|
|
if (this.SmoothFace.has(f1)) continue;
|
|
|
|
|
for (let f2 of bg.Faces)
|
|
|
|
|
{
|
|
|
|
|
if (bg.SmoothFace.has(f2)) continue;
|
|
|
|
|
|
|
|
|
|
//都是正面,或者不允许侧面同侧面并且2板件类型不一样就跳过
|
|
|
|
|
if (f1.type === f2.type
|
|
|
|
|
&& (f1.type === BoardFaceType.NoSide || bg.Board.BoardType !== this.Board.BoardType)
|
|
|
|
@ -99,17 +96,25 @@ class SetSmoothEdgeFaces extends BoardGetFace
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (f1.IsIntersect(f2, scale))
|
|
|
|
|
if (f1.type === f2.type)
|
|
|
|
|
{
|
|
|
|
|
if (f1.type === BoardFaceType.Side)
|
|
|
|
|
{
|
|
|
|
|
if (f1.IsIntersect(f2, scale))
|
|
|
|
|
this.SmoothFace.add(f1);
|
|
|
|
|
}
|
|
|
|
|
if (f2.type === BoardFaceType.Side)
|
|
|
|
|
{
|
|
|
|
|
if (f2.IsIntersect(f1, scale))
|
|
|
|
|
bg.SmoothFace.add(f2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (f1.IsIntersect(f2, scale))
|
|
|
|
|
{
|
|
|
|
|
if (f1.type === BoardFaceType.Side)
|
|
|
|
|
{
|
|
|
|
|
this.SmoothFace.add(f1);
|
|
|
|
|
}
|
|
|
|
|
if (f2.type === BoardFaceType.Side)
|
|
|
|
|
{
|
|
|
|
|
bg.SmoothFace.add(f2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|