vec3d to struct