Ejemplo n.º 1
0
        public QuadtreeNodeProcessor(string dataPath, TreeImportSettings settings) : base(dataPath, settings)
        {
            ChildBuffers = new PointCloudPoint[ChildCount][];
            for (var i = 0; i < ChildCount; ++i)
            {
                ChildBuffers[i] = new PointCloudPoint[settings.chunkSize];
            }

            ChildCounts     = new int[ChildCount];
            ChildFileCounts = new int[ChildCount];

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

            PointCollection.Initialize(settings);
        }