コード例 #1
0
        public void RegisterCloudManually(PointCloudViewerDX11 newViewer)
        {
            for (int i = 0; i < viewers.Count; i++)
            {
                // remove previous same instance cloud, if already in the list  
                for (int vv = 0, viewerLen = viewers.Count; vv < viewerLen; vv++)
                {
                    if (viewers[vv].fileName == newViewer.fileName)
                    {
                        Debug.Log("Removed duplicate cloud from viewers: " + newViewer.fileName);
                        clouds.RemoveAt(vv);
                        break;
                    }
                }
            }

            // add new cloud
            viewers.Add(newViewer);

            // manually call cloud to be processed
            CloudIsReady(newViewer.fileName);
        }