Skip to content

Commit

Permalink
Merge pull request #165 from ferrari212/master
Browse files Browse the repository at this point in the history
Adapting Vessel.js to ES6 class
  • Loading branch information
icarofonseca committed Nov 26, 2022
2 parents 72ec010 + e855519 commit 4cf0eca
Show file tree
Hide file tree
Showing 66 changed files with 19,459 additions and 4,821 deletions.
3,945 changes: 3,945 additions & 0 deletions build/modular_vessel.js

Large diffs are not rendered by default.

6,387 changes: 3,620 additions & 2,767 deletions build/vessel.js

Large diffs are not rendered by default.

1,252 changes: 1,252 additions & 0 deletions examples/3D_engine/OrbitControls.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions examples/3D_engine/STLLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,11 @@ THREE.STLLoader.prototype = {
var strArray = [];
for ( var i = 0; i < buf.byteLength; i ++ ) {

strArray.push(String.fromCharCode( array_buffer[ i ] )); // implicitly assumes little-endian
strArray.push( String.fromCharCode( array_buffer[ i ] ) ); // implicitly assumes little-endian

}
return strArray.join('');

return strArray.join( '' );

} else {

Expand All @@ -271,6 +272,7 @@ THREE.STLLoader.prototype = {
array_buffer[ i ] = buf.charCodeAt( i ) & 0xff; // implicitly assumes little-endian

}

return array_buffer.buffer || array_buffer;

} else {
Expand Down
Loading

0 comments on commit 4cf0eca

Please sign in to comment.