Created
February 8, 2015 18:02
-
-
Save Rogach/c8bc824d89c25a2eff70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ovd::VoronoiDiagram* vd = new ovd::VoronoiDiagram(1,100); | |
ovd::Point p0(-0.2567719874411157,-0.4983049800651602); | |
ovd::Point p1(0.12205285479992212,-0.640371712930281); | |
ovd::Point p2(-0.25972854724944455,-0.5143879072702902); | |
ovd::Point p3(-0.34168692840153536,-0.6418861147966213); | |
ovd::Point p4(-0.5288215108461576,0.18480346369654843); | |
ovd::Point p5(-0.35263585687204546,-0.50735692278175); | |
ovd::Point p6(-0.4821854389417177,0.46463421861462373); | |
int id0 = vd->insert_point_site(p0); | |
int id1 = vd->insert_point_site(p1); | |
int id2 = vd->insert_point_site(p2); | |
int id3 = vd->insert_point_site(p3); | |
int id4 = vd->insert_point_site(p4); | |
int id5 = vd->insert_point_site(p5); | |
int id6 = vd->insert_point_site(p6); | |
vd->insert_line_site(id0, id1); | |
vd->insert_line_site(id1, id2); | |
vd->insert_line_site(id2, id3); | |
vd->insert_line_site(id3, id4); | |
vd->insert_line_site(id4, id5); | |
vd->insert_line_site(id5, id6); | |
vd->insert_line_site(id6, id0); | |
vd->check(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment