setting origin?

how do we reset origin of a mesh to cursor position?

center cursor button

in edit buttons

my stupid