xeokit-sdk
xeokit-sdk copied to clipboard
DistanceMeasurementsPlugin get event with worldNormal when hover surface
v2.4.1 I trying to add different pointer like rectancgle rotated parallel to the surface, when hover surface.
So, change param pickSurfaceNormal to true, but sometimes got in DistanceMeasurementsPlugin event with worldNormal: [NaN, NaN, NaN]
https://github.com/xeokit/xeokit-sdk/blob/a510a96c848374e3cae71d86773f3124967a0a2c/src/viewer/scene/CameraControl/lib/controllers/PickController.js#L151
Or is has a better way?
Versions higher up v2.5.1-beta not working, loading stops when browser abort execution due to out of memory.