code refactoring & add similarityDeformation, RigidDeformation.