Пример #1
0
        /// <summary>
        /// Calls the voronoi API in order to build the voronoi cells.
        /// </summary>
        public void Construct()
        {
            //Construct
            VoronoiWrapper.Construct();

            //Build Maps
            VoronoiWrapper.CreateVertexMap();
            VoronoiWrapper.CreateEdgeMap();
            VoronoiWrapper.CreateCellMap();

            //long maxEdgeSize = VoronoiWrapper.GetEdgeMapMaxSize();
            //long maxEdgeIndexSize = VoronoiWrapper.GetEdgeIndexMapMaxSize();

            this.CountVertices = VoronoiWrapper.CountVertices();
            this.CountEdges    = VoronoiWrapper.CountEdges();
            this.CountCells    = VoronoiWrapper.CountCells();
        }