codes finished, bugs in vtk generate for density.