gkjohnson / three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
https://gkjohnson.github.io/three-mesh-bvh/example/bundle/raycast.html
MIT License
2.38k stars 247 forks source link

Not able to find any *.generated and *_indirect js files in your repository #672

Closed nnvvijay closed 3 weeks ago

nnvvijay commented 3 weeks ago

HI,

In my application, I am using your library which is the old version.

Now I am trying to update to the latest version but it's not working because of missing files.

Below are some of the example files that are referred to but not available in your master repository

few of them are as below MeshBVH.js:

import { iterateOverTriangles } from './utils/iterationUtils.generated.js'; import { refit } from './cast/refit.generated.js'; import { raycast } from './cast/raycast.generated.js'; import { raycastFirst } from './cast/raycastFirst.generated.js'; import { intersectsGeometry } from './cast/intersectsGeometry.generated.js'; import { closestPointToGeometry } from './cast/closestPointToGeometry.generated.js';

And buildTree.js import { partition } from './sortUtils.generated.js'; import { partition_indirect } from './sortUtils_indirect.generated.js';

these are some examples. Let me know how to solve this

nnvvijay commented 3 weeks ago

I am using your library in a static web page. Previously I use to download and include in my code

gkjohnson commented 3 weeks ago

These files are built on package release and not available in the project repository. But you can get them through the published NPM package or one of the CDNs that mirrors those packages.