コード例 #1
0
        protected TreeNodeProcessor(string dataPath, TreeImportSettings settings, TreeImportData importData)
        {
            Settings      = settings;
            this.dataPath = dataPath;

            tmpFolderPath = Path.Combine(dataPath, "tmp");

            stride           = UnsafeUtility.SizeOf <PointCloudPoint>();
            ChildNodeRecords = new List <NodeRecord>();
            inputBuffer      = new PointCloudPoint[settings.chunkSize];

            if (settings.sampling == TreeImportSettings.SamplingMethod.CellCenter)
            {
                PointCollection         = new CellCenterPointCollection();
                VolatilePointCollection = new CellCenterPointCollection();
            }
            else
            {
                PointCollection         = new PoissonDiskPointCollection();
                VolatilePointCollection = new CellCenterPointCollection();
            }

            PointCollection.Initialize(settings, importData);
            VolatilePointCollection.Initialize(settings, importData);
        }