Skip to content

Commit

Permalink
Fix TS test
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Aug 31, 2024
1 parent 0203ebd commit 8b7cf71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/TypescriptImportTest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { BufferGeometry, Mesh, Raycaster, BatchedMesh } from 'three';
import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree } from '../src/index';
import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree, computeBatchedBoundsTree, disposeBatchedBoundsTree } from '../src/index';

Mesh.prototype.raycast = acceleratedRaycast;
BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;
BufferGeometry.prototype.disposeBoundsTree = disposeBoundsTree;
BatchedMesh.prototype.computeBoundsTree = computeBoundsTree;
BatchedMesh.prototype.disposeBoundsTree = disposeBoundsTree;

BatchedMesh.prototype.raycast = acceleratedRaycast;
BatchedMesh.prototype.computeBoundsTree = computeBatchedBoundsTree;
BatchedMesh.prototype.disposeBoundsTree = disposeBatchedBoundsTree;

const mesh = new Mesh();
mesh.geometry.computeBoundsTree();
Expand Down

0 comments on commit 8b7cf71

Please sign in to comment.