Skip to content

Commit

Permalink
GeometryCompressionUtils: Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 10, 2021
1 parent f2eb381 commit 9e30cb4
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions examples/jsm/utils/GeometryCompressionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,32 +346,6 @@ function defaultEncode( x, y, z, bytes ) {

}

function defaultDecode( array, bytes ) {

if ( bytes == 1 ) {

return [
( ( array[ 0 ] / 255 ) * 2.0 ) - 1.0,
( ( array[ 1 ] / 255 ) * 2.0 ) - 1.0,
( ( array[ 2 ] / 255 ) * 2.0 ) - 1.0,
];

} else if ( bytes == 2 ) {

return [
( ( array[ 0 ] / 65535 ) * 2.0 ) - 1.0,
( ( array[ 1 ] / 65535 ) * 2.0 ) - 1.0,
( ( array[ 2 ] / 65535 ) * 2.0 ) - 1.0,
];

} else {

console.error( 'number of bytes must be 1 or 2' );

}

}

// for `Angles` encoding
function anglesEncode( x, y, z ) {

Expand Down

0 comments on commit 9e30cb4

Please sign in to comment.