我试图从鼠标坐标绘制橡皮带转换为3d点,rubberband link我附加了它的工作代码。
geometry.vertices[0] = new THREE.Vector3(startPoint.x, startPoint.y, startPoint.z);
geometry.vertices[1] = new THREE.Vector3(endPoint.x, startPoint.y, startPoint.z);
geometry.vertices[2] = new THREE.Vector3(endPoint.x, endPoint.y, startPoint.z);
geometry.vertices[3] = new THREE.Vector3(startPoint.x, endPoint.y, startPoint.z);
geometry.vertices[4] = new THREE.Vector3(startPoint.x, startPoint.y, startPoint.z);
任何人都可以提出他们的建议,我的代码出了什么问题?。