Hi I am finally working on the “Walkabout” script again,
and I am having issues with both “ProjectPointToMesh” and “PointArrayClosestPoint”.
I use “ProjectPointToMesh” to project the new camera position down on the mesh, and the result is not within the file tolerance.
And I use “PointArrayClosestPoint” to find which of the projected points that are closest to the camera position. This I do so I can navigate an overlapping mesh (example: so I can walk from one floor up a staircase to the next floor)
And here also I often end up with the wrong data if the floor thickness is close to the tolerance.
So I have to set the tolerance in the file higher, which seems like an odd thing to do since the results should be floating numbers, aren’t they?
Hi Jørgen, small help only, if you look to the function in pointvector.py, you might be able to use a smaller tolerance value. It uses ModelAbsoluteTolerance by default.