修改白线

This commit is contained in:
hzz 2023-05-24 10:03:52 +08:00
parent 270a002a68
commit 016250b91a

View File

@ -442,13 +442,13 @@ const init = () => {
/*创建第一条线******************/ /*创建第一条线******************/
let garyLine = 0x595959; let garyLine = 0x595959;
let whiteColor = 0xffffff; let whiteColor = 0xffffff;
createLine(whiteColor, [{ x: -346.00, y: 23.6, z: 59.40 }, { x: -160.50, y: 2, z: 142.08 }], 1) createLine(whiteColor, [{ x: -346.00, y: 23.6, z: 59.40 }, { x: -160.50, y: 2, z: 142.08 }], 2)
// //
createLine(whiteColor, [ createLine(whiteColor, [
{ x: -345.65, y: 2, z: 36.40 }, { x: -345.65, y: 2, z: 36.40 },
{ x: 22.67, y: 2, z: 36.40 }, { x: 22.67, y: 2, z: 36.40 },
{ x: 22.67, y: 2, z: -25.70 }, { x: 22.67, y: 2, z: -25.70 },
], 1) ], 2)
createLine(garyLine, [ createLine(garyLine, [
{ x: 22.67, y: 2, z: -25.70 }, { x: 22.67, y: 2, z: -25.70 },
{ x: -47.67, y: 2, z: -25.70 }, { x: -47.67, y: 2, z: -25.70 },
@ -459,13 +459,13 @@ const init = () => {
createLine(garyLine, [{x:-88.73,y:2,z:-249.01},{x:-88.73,y:2,z:-117.33} , { x: -174.65, y: 2, z: -117.33 }]) createLine(garyLine, [{x:-88.73,y:2,z:-249.01},{x:-88.73,y:2,z:-117.33} , { x: -174.65, y: 2, z: -117.33 }])
// //
createLine(whiteColor, [{ x: -293.44, y: 2, z: 52.52 }, { x: -293.44, y: 2, z: 36.40 }, { x: -235.84, y: 2, z: -30.87 }], 1) createLine(whiteColor, [{ x: -293.44, y: 2, z: 52.52 }, { x: -293.44, y: 2, z: 36.40 }, { x: -235.84, y: 2, z: -30.87 }], 2)
// //
createLine(whiteColor, [ createLine(whiteColor, [
{ x: -114.64, y: 2, z: 36.40 }, { x: -114.64, y: 2, z: 36.40 },
{ x: -114.64, y: 2, z: 52.42 }, { x: -114.64, y: 2, z: 52.42 },
{ x: -46.13, y: 2, z: 52.90 }, { x: -46.13, y: 2, z: 52.90 },
], 1) ], 2)
createLine(garyLine, [ createLine(garyLine, [
{ x: -46.13, y: 2, z: 52.90 }, { x: -46.13, y: 2, z: 52.90 },
@ -495,7 +495,7 @@ const init = () => {
{ x: 294.54, y: 2, z: 175.55 }, { x: 294.54, y: 2, z: 175.55 },
{ x: 294.54, y: 2, z: 40.43 }, { x: 294.54, y: 2, z: 40.43 },
{ x: 306.56, y: 2, z: 40.43 } { x: 306.56, y: 2, z: 40.43 }
], 1) ], 2)
createLine(garyLine, [ createLine(garyLine, [
{ x: 306.56, y: 2, z: 40.43 }, { x: 306.56, y: 2, z: 40.43 },
{ x: 306.56, y: 2, z: 235.28 } { x: 306.56, y: 2, z: 235.28 }
@ -505,7 +505,7 @@ const init = () => {
{ x: -164.26, y: 2, z: 30.98 }, { x: -164.26, y: 2, z: 30.98 },
{ x: -164.26, y: 2, z: 140.05 } { x: -164.26, y: 2, z: 140.05 }
],1) ],2)
createLine(garyLine, [ createLine(garyLine, [
{ x: -164.26, y: 2, z: 140.05 }, { x: -164.26, y: 2, z: 140.05 },
{ x: -214.35, y: 2, z: 140.05 } { x: -214.35, y: 2, z: 140.05 }
@ -536,12 +536,12 @@ const init = () => {
createLine(whiteColor, [ createLine(whiteColor, [
{ x: -292.24, y: 2, z: 30.98 }, { x: -292.24, y: 2, z: 30.98 },
{ x: -242.61, y: 2, z: -30.90 } { x: -242.61, y: 2, z: -30.90 }
], 1) ], 2)
// //
createLine(whiteColor, [ createLine(whiteColor, [
{ x: 18.30, y: 2, z: 30.98 }, { x: 18.30, y: 2, z: 30.98 },
{ x: 18.30, y: 2, z: -28.94 } { x: 18.30, y: 2, z: -28.94 }
], 1) ], 2)
// //
createLine(garyLine, [ createLine(garyLine, [
{ x: 18.30, y: 2, z: -28.94 }, { x: 18.30, y: 2, z: -28.94 },
@ -554,7 +554,7 @@ const init = () => {
createLine(whiteColor, [ createLine(whiteColor, [
{ x: 18.30, y: 2, z: 30.98 }, { x: 18.30, y: 2, z: 30.98 },
{ x: 18.30, y: 2, z: -28.94 } { x: 18.30, y: 2, z: -28.94 }
],1) ],2)
setTipDom() setTipDom()
sethoveMesh() sethoveMesh()
@ -609,7 +609,7 @@ const init = () => {
// console.log("", "{x:" + (+selected.point.x - 0.83).toFixed(2) + ",y:2 ,z:" + (selected.point.z + 3.52).toFixed(2) + "}"); // console.log("", "{x:" + (+selected.point.x - 0.83).toFixed(2) + ",y:2 ,z:" + (selected.point.z + 3.52).toFixed(2) + "}");
let workerShop = intersects[0]?.object?.name let workerShop = intersects[0]?.object?.name
if (workerShopRoute.hasOwnProperty(workerShop) && !edit) { if (workerShopRoute.hasOwnProperty(workerShop) && !edit) {
//router.push({ path: workerShopRoute[workerShop] }) router.push({ path: workerShopRoute[workerShop] })
} }
} }
@ -747,7 +747,7 @@ function createLine(color: number, pointsList: any, width: number = 4) {
color: color, color: color,
transparent: true, transparent: true,
// opacity: 0.5, // opacity: 0.5,
dashed: width !== 1?true:false, dashed: width !== 2?true:false,
dashScale: 1, dashScale: 1,
dashSize: 3, dashSize: 3,
gapSize: 1, gapSize: 1,