Determining the joining area by using markings on at least one of the parts to be joined