@ -2287,8 +2287,8 @@ if (points.length) { // If points exist (at least 1 point)
varfindNearestTable=[];
varhowManyPoints=0;
for(letm=0;m<points.length;m++){
if(points[m].id==257){
//if (points[m].selected == true){
//if (points[m].id == 257){
if(points[m].selected==true){
howManyPoints=howManyPoints+1;
selectedPoints.push(points[m]);// Add the selected points in to a new variable
}
@ -2305,8 +2305,8 @@ if (points.length) { // If points exist (at least 1 point)
varvw=viewport[0]*0.5;
varvh=viewport[1]*0.042;
//var maxKNN = Math.round(document.getElementById("param-perplexity-value").value*1.25); // Specify the amount of k neighborhoods that we are going to calculate. According to "perplexity."
varmaxKNN=1;
varmaxKNN=Math.round(document.getElementById("param-perplexity-value").value*1.25); // Specify the amount of k neighborhoods that we are going to calculate. According to "perplexity."
//var maxKNN = 1;
selectedPoints.sort(function(a,b){// Sort the points according to ID.