In, for example, a manufacturing plant, when a product such as a machine is automatically assembled, a device for automatically discriminating the shape of three-dimensional objects such as machine parts becomes necessary for selecting suitable parts among them.