After creating a box geometry using the code below:
const hand1geo = new THREE.BoxGeometry(2, 0.01, 0.2);
const material_sidehand = new THREE.MeshBasicMaterial({ color: 0x3cc1b7 });
const sidehand = new THREE.Mesh(hand1geo, material_sidehand);
I attempted to extract vertices from the box using:
this.sidehand.attributes.position.array
The result I obtained was showcased in this image. It seemed to generate 72 elements (24 vectors) with the same value. I am puzzled by why there are exactly 24 vectors and where they have been defined. This information is crucial as I plan to utilize a raycaster for collision detection in the future. Despite trying to access the vertices using this.sidehand.vertices
, it proved unsuccessful.