|
|
@ -22,7 +22,6 @@ export default class Label extends THREE.Object3D{ |
|
|
|
this.#imgMesh=new THREE.Mesh(geometry,material) |
|
|
|
this.#imgMesh.renderOrder=6 |
|
|
|
this.#imgMesh.position.set(115*this.#pos[0],this.#pos[1],115*(this.#pos[2] -0.01)) |
|
|
|
this.#imgMesh.rotation.x=-Math.PI/6 |
|
|
|
this.add(this.#imgMesh) |
|
|
|
|
|
|
|
var nameGeometry=new THREE.PlaneGeometry(this.#nameObj.box.width/16,this.#nameObj.box.height/16) |
|
|
@ -35,7 +34,6 @@ export default class Label extends THREE.Object3D{ |
|
|
|
this.#nameMesh=new THREE.Mesh(nameGeometry, nameMaterial) |
|
|
|
this.#nameMesh.renderOrder=6 |
|
|
|
this.#nameMesh.position.set(115*this.#pos[0],this.#pos[1]-0.5,115*(this.#pos[2] +0.01)) |
|
|
|
this.#nameMesh.rotation.x=-Math.PI/8 |
|
|
|
this.add(this.#nameMesh) |
|
|
|
} |
|
|
|
refesh(){ |
|
|
|