VoronoiGrowthSimulator
Based on Site Saturated Nucleation and Isotropic Growth
Loading...
Searching...
No Matches
C:/Users/harshn/Desktop/VoronoiGrowthSimulator/example.cpp
Go to the documentation of this file.
1#include "Voronoi.hpp"
2
3
4
5int main(int argc, char* argv[])
6{
7 int m = argc > 1 ? std::stoi(argv[1]) : 1000;
8 int n = argc > 2 ? std::stoi(argv[2]) : 1000;
9 int p = argc > 3 ? std::stoi(argv[3]) : 100;
10 Voronoi V(m, n, p);
11 V.Nucleate();
12 V.Grow();
13 std::string A = "Voronoi.csv";
14 V.WriteDataToCSV(A);
15 return 0;
16}
int main()
Definition example.cpp:9
Represents a Voronoi diagram.
Definition Voronoi.hpp:27
void Grow()
Grows the Voronoi diagram.
Definition Voronoi.cpp:448
void WriteDataToCSV(std::string &filename)
Definition Voronoi.cpp:463
void Nucleate(long long myseed)
Nucleates the Voronoi diagram with the specified seed.
Definition Voronoi.cpp:136