分离选择材质,避免实体选中时,选中材质导致的内部拉槽显示问题.

修正未选中板件时,视图没有刷新的问题.
加入排钻显示.
This commit is contained in:
ChenX
2018-05-31 11:12:29 +08:00
parent 4f3d7a6388
commit cbe28efb08
10 changed files with 79 additions and 27 deletions

6
dist/Material.js vendored
View File

@@ -8,6 +8,12 @@ exports.boardMaterial = new three_1.MeshBasicMaterial({
polygonOffsetFactor: 1,
polygonOffsetUnits: 1
});
exports.selectMaterial = new three_1.MeshBasicMaterial({
color: new three_1.Color(0.1, 0.5, 0.5),
polygonOffset: true,
polygonOffsetFactor: 1,
polygonOffsetUnits: 1
});
//线框的材质
exports.edgeMaterial = new three_1.LineBasicMaterial({ linewidth: 2, color: new three_1.Color(0, 0, 0) });
//# sourceMappingURL=Material.js.map