222223224225226227228229230231232
Vector3d plane = tmps.v3d3[i]; plane.x = vd.x - ud.x; plane.y = vd.y - ud.y; plane.z = 0; plane.cross(up); plane.unit(); axis[3 + i] = plane; if (plane.y == -1) plane.y = 1; }