Application of reverse engineering to palaeontology