Computing components' shape descriptors