예제 #1
0
        public static int EnableDepthEdgeEnhance(bool active)
        {
            int result = ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_DEPTH, (int)DepthCmd.ENABLE_EDGE_ENHANCE, active);

            if (result == (int)Error.WORK)
            {
                _DepthEdgeEnhance = active;
            }
            return(result);
        }
예제 #2
0
        public static int EnableDepthRefinement(bool active)
        {
            int result = ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_DEPTH, (int)DepthCmd.ENABLE_REFINEMENT, active);

            if (result == (int)Error.WORK)
            {
                _DepthRefinement = active;
            }
            return(result);
        }
        private static bool SetColliderRangeEnable(bool value)
        {
            int result = ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_DEPTH, (int)DepthCmd.ENABLE_SELECT_MESH_DISTANCE_RANGE, value);

            if (result == (int)Error.WORK)
            {
                _UpdateDepthColliderRange = value;
                return(true);
            }

            return(false);
        }
        public static bool SetDepthColliderHoleFillingEnable(bool value)
        {
            int result = ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_DEPTH, (int)DepthCmd.ENABLE_DEPTH_MESH_HOLE_FILLING, value);

            if (result == (int)Error.WORK)
            {
                _UpdateDepthColliderHoleFilling = value;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        private static bool SetColliderProcessEnable(bool value)
        {
            int result = ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_DEPTH, (int)DepthCmd.EXTRACT_DEPTH_MESH, value);

            if (result == (int)Error.WORK)
            {
                _UpdateDepthCollider = value;
            }
            if (_UpdateDepthCollider == false)
            {
                ColliderMeshes.sharedMesh.Clear();
                ColliderMeshVisibility = false;
            }

            return(true);
        }
예제 #6
0
 public static void StopScanning()
 {
     IsScanning      = false;
     IsExportingMesh = false;
     ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.STOP), true);
 }
예제 #7
0
 public static void StartScanning()
 {
     ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.START), true);
     IsScanning = true;
 }
예제 #8
0
 public static void EnableLiveMeshExtraction(bool enable)
 {
     ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.EXTRACT_POINT_CLOUD), enable);
 }