清理代码

pull/234/MERGE
ChenX 6 years ago
parent a5e63d6585
commit 78160a3081

@ -130,8 +130,7 @@ export class Board extends Entity
spliteWidth: "",
spliteThickness: ""
}
let roMat = board.RotateMat
board.ApplyMatrix(roMat);
board.ApplyMatrix(board.RotateMat);
board.m_SpecOCS.identity();
// board.ColorIndex = boardType + 1;
return board;
@ -536,7 +535,7 @@ export class Board extends Entity
for (let m of this.m_BoardModeling)
{
let tmpPts = isGrip ? m.shape.GetGripPoints() : m.shape.GetStretchPoints();
if (m.dir === 1)
if (m.dir === FaceDirection.Back)
{
tmpPts = tmpPts.map(p => p.add(new Vector3(0, 0, -this.m_Thickness + m.thickness)));
}
@ -712,7 +711,7 @@ export class Board extends Entity
let shapeZ = m.shape.Outline.Curve.Position.z;
if (this.m_Thickness * m.thickness < 0)
deleteModel.add(m);
else if (m.dir === 0)
else if (m.dir === FaceDirection.Front)
{
if (shapeZ < 0 || shapeZ > m.thickness)
deleteModel.add(m);

Loading…
Cancel
Save