@@ -26,12 +26,12 @@ describe('LASParser', function () {
26
26
assert . strictEqual ( bufferGeometry . attributes . classification . count , bufferGeometry . userData . pointCount ) ;
27
27
assert . strictEqual ( bufferGeometry . attributes . color , undefined ) ;
28
28
29
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
30
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
31
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
32
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
33
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
34
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
29
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
30
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
31
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
32
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
33
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
34
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
35
35
} ) ;
36
36
37
37
describe ( 'parses a laz file to a THREE.BufferGeometry' , function ( ) {
@@ -43,12 +43,12 @@ describe('LASParser', function () {
43
43
assert . strictEqual ( bufferGeometry . attributes . classification . count , bufferGeometry . userData . pointCount ) ;
44
44
assert . strictEqual ( bufferGeometry . attributes . color , undefined ) ;
45
45
46
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
47
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
48
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
49
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
50
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
51
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
46
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
47
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
48
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
49
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
50
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
51
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
52
52
} ) ;
53
53
54
54
it ( 'laz v1.4' , async ( ) => {
@@ -59,12 +59,12 @@ describe('LASParser', function () {
59
59
assert . strictEqual ( bufferGeometry . attributes . classification . count , bufferGeometry . userData . pointCount ) ;
60
60
assert . strictEqual ( bufferGeometry . attributes . color . count , bufferGeometry . userData . pointCount ) ;
61
61
62
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
63
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
64
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
65
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
66
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
67
- assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
62
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . min [ 0 ] , 0.1 ) ) ;
63
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . min [ 1 ] , 0.1 ) ) ;
64
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . min . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . min [ 2 ] , 0.1 ) ) ;
65
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . x + bufferGeometry . userData . origin . x , bufferGeometry . userData . max [ 0 ] , 0.1 ) ) ;
66
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . y + bufferGeometry . userData . origin . y , bufferGeometry . userData . max [ 1 ] , 0.1 ) ) ;
67
+ assert . ok ( compareWithEpsilon ( bufferGeometry . boundingBox . max . z + bufferGeometry . userData . origin . z , bufferGeometry . userData . max [ 2 ] , 0.1 ) ) ;
68
68
} ) ;
69
69
} ) ;
70
70
} ) ;
0 commit comments