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); }
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); }
public static void StopScanning() { IsScanning = false; IsExportingMesh = false; ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.STOP), true); }
public static void StartScanning() { ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.START), true); IsScanning = true; }
public static void EnableLiveMeshExtraction(bool enable) { ViveSR_Framework.SetCommandBool(ViveSR_Framework.MODULE_ID_RIGID_RECONSTRUCTION, (int)(ReconstructionCmd.EXTRACT_POINT_CLOUD), enable); }