1. A method for generating an n dimensional vector as a shape descriptor of a model, comprising: determining a type element of the vector to describe the basic shape of the model; and calculating n−1 metric elements of the vector, each of which represents the percentage of all of a feature of the model falling into one of n−1 layers divided as a function of the type element.