Skip to content

Commit

Permalink
cleaned code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor committed Jul 13, 2010
1 parent 12379c2 commit c6bab41
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions psapi.js
Expand Up @@ -882,7 +882,7 @@ function PointStream(){

// trim leading and trailing whitespace
var values = AJAX.responseText;

// trim trailing spaces
values = values.replace(/\s+$/,"");

Expand All @@ -899,8 +899,6 @@ function PointStream(){

var objCenter = [0,0,0];

var time = new Date().getSeconds();

// xyz rgb normals
for(var i = 0, j = 0, len = values.length; i < len; i += code, j+=3){

Expand Down Expand Up @@ -930,11 +928,7 @@ function PointStream(){
norms[j+1] = parseFloat(values[i+7]);
norms[j+2] = parseFloat(values[i+8]);
}

jj+=3;
}
alert(new Date().getSeconds() - time);


// if the user wants to center the point cloud
if(autoCenter){
Expand Down

0 comments on commit c6bab41

Please sign in to comment.