Beispiel #1
0
        private void onTap_DebuggingPoseImageDictionaryUpdate()
        {
            Debug.Log("Testing_TouchScreenManager: Tap received! Testing Pose Image Dictionary update!");
            var       poseImageDictionaryTestScript = GameObject.FindObjectOfType <Testing_PoseImageDictionary>();
            PoseVoxel voxel = poseVoxelSet.ToPoseVoxel(new Pose(Camera.main));
            Texture2D tex   = Texture2D.whiteTexture;

            poseImageDictionaryTestScript.Add(voxel, tex);
        }
        public bool AddedIsSameAsStored(Pose pose)
        {
            // Get the current pose
            // Turn it into a Voxel
            // Return it

            if (poseVoxelSet.AddFor(pose))
            {
                PoseVoxel voxel       = poseVoxelSet.ToPoseVoxel(pose);
                PoseVoxel storedVoxel = poseVoxelSet[pose];

                return(voxel.Equals(storedVoxel));
            }

            return(false);
        }