The position attribute might not exist when the mesh is empty, which may be another problem, but there is no need to count on it here.
The position attribute might not exist when the mesh is empty, which may be another problem, but there is no need to count on it here.