I can get the vertices of a unrotated cylinder through geometry.vertices attribute. But I am unable to get vertices of a rotated cylinder. Kindly help with the Maths.
If you mean a cylinder rotated by object transform, you just need to apply the transform matrix to (a copy of) each vertex.
Something like that:
var vec3 = new THREE.Vector3().copy(mesh.geometry.vertices[0]);
mesh.localToWorld(vec3);
console.log(vec3);
2 Likes