Refactor for deformer and fix coordinate system.