Maya API undo? meshFn.setPoints(worldPoint)


I need some help or a hint
is it possible to undo maya API undo?
I am setting point position with meshFn.setPoints(worldPoint),
is there a way if I want to undo this? ( so point undo to where it was before)


You can write an MPxCommand with an undoIt function. If there is an easier way to go about it, I would also like to know.