Separate computation code from Dots3DShape

The computation code block is separate from the Dots3DShape. Now the
class, Dots3DShape, only maintain the work of transform from ca grid to
3D points.