refactoring by Xtr using vector<Point3d>