Shape representation and registration using implicit functions