Computer-implemented method for virtual fitting of a pair of spectacles, comprising: fine virtual positioning of a spectacle frame on the basis of a 3D model (30, 31) of a head and a 3D model of the spectacle frame, approximate virtual positioning of the spectacle frame on the head on the basis of head metadata for the 3D model (30, 31) of the head and frame metadata for the 3D model of the spectacle frame before the fine virtual positioning, wherein the provision of the frame metadata comprises a segmentation of the 3D model of the spectacle frame into components of the spectacle frame, wherein the components preferably comprise at least one component of the group - earpiece parts - a remaining part of the spectacle frame apart from earpiece parts and/or wherein the head metadata comprise resting regions for the ears of the head, which regions are calculated on the basis of the earpiece parts, characterized in that the segmentation of the 3D model of the spectacle frame into components of the spectacle frame is implemented by means of respective sectional planes in space, which subdivide vertices or voxels of the 3D model, wherein the respective sectional planes are defined by a respective reference point p and a respective normal vector n, which is perpendicular to the respective sectional plane in space, and wherein the segmentation of the 3D model of the spectacle frame is implemented on the basis of a comparison of - the scalar product of a vertex or voxel of the 3D model of the spectacle frame with the respective normal vector n with - a scalar product of the respective reference point p with the normal vector n. fine virtual positioning of a spectacle frame on the basis of a 3D model (30, 31) of a head and a 3D model of the spectacle frame, approximate virtual positioning of the spectacle frame on the head on the basis of head metadata for the 3D model (30, 31) of the head and frame metadata for the 3D model of the spectacle frame before the fine virtual positioning, wherein the provision of the frame metadata comprises a segmentation of the 3D model of the spectacle frame into components of the spectacle frame, wherein the components preferably comprise at least one component of the group - earpiece parts - a remaining part of the spectacle frame apart from earpiece parts - earpiece parts - a remaining part of the spectacle frame apart from earpiece parts and/or wherein the head metadata comprise resting regions for the ears of the head, which regions are calculated on the basis of the earpiece parts, characterized in that the segmentation of the 3D model of the spectacle frame into components of the spectacle frame is implemented by means of respective sectional planes in space, which subdivide vertices or voxels of the 3D model, wherein the respective sectional planes are defined by a respective reference point p and a respective normal vector n, which is perpendicular to the respective sectional plane in space, and wherein the segmentation of the 3D model of the spectacle frame is implemented on the basis of a comparison of - the scalar product of a vertex or voxel of the 3D model of the spectacle frame with the respective normal vector n with - a scalar product of the respective reference point p with the normal vector n. - the scalar product of a vertex or voxel of the 3D model of the spectacle frame with the respective normal vector n with - a scalar product of the respective reference point p with the normal vector n.