[Closed] Reducing processing time in finding closest. Voxels?
I want to find the closest N points of a 3d grid to knots in a rather detailed spline. This is to create data for a gridded vector field from manually created splines. The brute force way of testing the distance of each grid point to every single knot will likely be very slow. I think I kind of understand the idea behind the raymeshgridintersect function and how it breaks the volume up into chunks and only tests against faces within the relevant chunks. I have absolutely no idea about how to go about coding the structure of something like this. Is this kind of thing even possible to do with maxscript? I’m hoping I can get my head around it. Any tips or links or examples would be very much appreciated.
Cheers,
Cg.
I just searched and found many threads on this exact topic. Haven’t read any of them yet but it’s likely I will find the answer in there.
Carry on.
Cg.
Would you post those topics here? It would be pretty interesting to me as well… Thank you!
Just do a search on “voxel” in this sub-forum. There’s lots of threads. :keenly:
Cheers,
Cg.