Thanks for your reply, I have tried to port the length measurement functions from Room Capture but it does not work. on which part of the Room Capture code i have to consider more?
secondly Jim, what is the maximum length in meters we can scan ? I've increased the range from 3 meter to 15 meters in adjustVolumeSize function. it works till 10 meters but if i choose 11 then it crash.
// Make sure the volume size remains between 10 centimeters and 3 meters.
// Defualt value is 3.0f
volumeSize.x = keepInRange (volumeSize.x, 0.1, 25.f);
volumeSize.y = keepInRange (volumeSize.y, 0.1, 5.f);
volumeSize.z = keepInRange (volumeSize.z, 0.1, 5.f);
_slamState.volumeSizeInMeters = volumeSize;
_slamState.cameraPoseInitializer.volumeSizeInMeters = volumeSize;
any suggestion ?