Hi, I have made a number of voxels entirely covering the world volume, and now I am trying to calculate distance of my ray from one boundary to another boundary.
Hi Dhruv,
You’ve told us what you are doing, but not what it getting wrong. What may get wrong is that FindNode puts the point inside one of the volume that is daugter of the world volume, since it is very close to a boundary. Then FindNextBoundary may produce a zero step. Is this your problem?
Hi @agheata ,
I am guessing that’s probably it. Once I calculate my new point which is on the boundary, it returns the same index as before with zero distance. I had to add an infinitesimally small error to each point, so that it gets included inside a daughter volume instead of being on the boundary, and it returns correct results. Is there a better way out of it??