When I am trying to use the cpp_examples medial_axis, I found the error:
void ovd::VoronoiDiagram::add_edges(ovd::HEFace, ovd::HEFace, ovd::HEFace, std::pair<void*, void*>): Assertion `(new_count % 2) == 0' failed.
With the code:
ovd::Point p0(3.25,1.15);
ovd::Point p1(1.1,1.15);
ovd::Point p2(-0.275,1.15);
ovd::Point p3(-1.25,0.475);
ovd::Point p4(-0.95,-1.1);
ovd::Point p5(1.1,-1.15);
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);
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, id0);
vd->check();
However, when I remove Point p1 and remake, it works without errors.
With the code:
ovd::Point p0(3.25,1.15);
// ovd::Point p1(1.1,1.15);
ovd::Point p2(-0.275,1.15);
ovd::Point p3(-1.25,0.475);
ovd::Point p4(-0.95,-1.1);
ovd::Point p5(1.1,-1.15);
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);
vd->insert_line_site(id0, id2);
// 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, id0);
vd->check();
I think the different points caused the problems. But I did not find why it happens.
Thanks.
When I am trying to use the cpp_examples medial_axis, I found the error:
With the code:
However, when I remove Point p1 and remake, it works without errors.
With the code:
I think the different points caused the problems. But I did not find why it happens.
Thanks.