I have a GLTF model that I exported as FBX from Revit, imported into Blender, and then exported as GLTF. When I load the model into Three.js, I notice an issue with the mesh positions.
I inspect the mesh.geometry.attributes.position.array
to get the coordinates of the meshes. However, the points don’t match the visual model—they appear scaled or transformed, even though I didn’t apply any transformations.
Here’s the code I use to check the positions:
model.traverse((child) => {
if (child.isMesh) {
if (child.userData.name.includes('329762')) {
console.log(child.geometry.attributes.position.array);
}
}
});
I want to use child.position.add(number)
to update the mesh position, but this doesn’t change the geometry. Therefore, I need to iterate through the points and adjust them directly, but the geometry seems incorrect.