How to get the absolute position of a vertex in three.js?

You can get the world position of a vertex like so:

const vertex = new THREE.Vector3(); // create once and reuse

const attribute = object.geometry.getAttribute( 'position' );

vertex.fromBufferAttribute( attribute, index );

object.localToWorld( vertex );

three.js r151

Leave a Comment