Exemple #1
0
        private IEnumerator _ExportSemanticMesh(System.Action <int> UpdatePercentage = null, System.Action done = null)
        {
            int percentage     = 0;
            int lastPercentage = 0;

            while (percentage < 100)
            {
                percentage = ViveSR_SceneUnderstanding.GetSceneUnderstandingProgress();

                // wait until saving is really processing then we disable depth
                if (lastPercentage == 0 && percentage > 0)
                {
                    ViveSR_DualCameraImageCapture.EnableDepthProcess(false);
                }
                if (UpdatePercentage != null)
                {
                    UpdatePercentage(percentage);
                }
                yield return(new WaitForEndOfFrame());
            }

            _semanticMeshIsExporting = false;
            ViveSR_RigidReconstruction.StopScanning();
            if (done != null)
            {
                done();
            }
        }
Exemple #2
0
        public IEnumerator _TestSegmentationResult(System.Action <int> UpdatePercentage = null, System.Action done = null)
        {
            int percentage = 0;

            ViveSR_SceneUnderstanding.ExportSceneUnderstandingInfo(semanticObj_dir);

            while (percentage < 100)
            {
                percentage = ViveSR_SceneUnderstanding.GetSceneUnderstandingProgress();
                UpdatePercentage(percentage);

                yield return(new WaitForEndOfFrame());
            }

            if (done != null)
            {
                done();
            }
        }
Exemple #3
0
        private IEnumerator _ExportSemanticMesh(System.Action <int> UpdatePercentage = null, System.Action done = null)
        {
            int percentage = 0;

            while (percentage < 100)
            {
                percentage = ViveSR_SceneUnderstanding.GetSceneUnderstandingProgress();
                if (UpdatePercentage != null)
                {
                    UpdatePercentage(percentage);
                }
                yield return(new WaitForEndOfFrame());
            }

            if (done != null)
            {
                done();
            }
        }