finalization of 3d and robustness with iterative PCA