title: Place an image Icon on Line in three.js
body: <p>I've drawn a line using list of xyz points as follows</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for (var i = 0, len = vertices.length - 1; i &lt; len; i++) {
          vertex = vertices[i];
          geometry = new THREE.CubeGeometry(width+7, height, 1);
          geometry.computeVertexNormals(); 
          //material = new THREE.MeshBasicMaterial({ color: 0xff3333, shading: THREE.FlatShading, wireframe: true, transparent: true });            
          //Initializing MeshNormalMaterial to get the 3d Line Geometry
          material = new THREE.MeshBasicMaterial({ color: 0xEB9180 });
         
          mesh = new THREE.Mesh(geometry, material);
          mesh.position = vertex;
          mesh.lookAt(vertices[1 + i]);
          length = vertex.distanceTo(vertices[1 + i]);
          mesh.scale.set(1, 1, length + width);
          mesh.translateZ(0.5 * length);
          segments.add(mesh);
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Line which is created dynamically with list of xyz points:</p>
  
  <p><a href="https://i.stack.imgur.com/zsuCj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zsuCj.png" alt="enter image description here"></a></p>
  
  <p>Now I want to place an image icon on the <strong>line</strong> which should traverse the entire line as follows</p>
  
  <p><a href="https://i.stack.imgur.com/pyolz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pyolz.png" alt="enter image description here"></a></p>