This software is licensed by Creative Commons BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/3.0/it/legalcode The routines Main_2p and Main_3p contain examples concerning the approximation of the attraction basins. To run such codes the following Matlab functions must be downloaded. P. Vemulapalli, kd_buildtree.m, available at: http://www.mathworks.com/matlabcentral/fileexchange/26649-kdtree-implementation-in-matlab/content//kdtree/kd_buildtree.m P. Vemulapalli, kd_knn.m, available at: http://www.mathworks.com/matlabcentral/fileexchange/26649-kdtree-implementation-in-matlab/content//kdtree/kd_knn.m P. Vemulapalli and G. E. Fasshauer, kd_rangequery_ball.m, available at: http://amadeus.math.iit.edu/~fass/matlab/meshfree/kd_rangequery_ball.m A. Tagliasacchi, pcloud_normal_estimate.m, available at: http://latis.cs.sfu.ca/svn/users/ata2/matlibs/pointlab/pcloud_normal_estimate.m