src/triangulate.cpp

changeset 369
57de8fab2237
parent 321
180072db4a83
child 374
75efc3ba5a56
equal deleted inserted replaced
368:9444de9762c3 369:57de8fab2237
94 *(polyBegin + shared_boundary.first), 94 *(polyBegin + shared_boundary.first),
95 *(polyBegin + earcut_triangle_2.third_vertex), 95 *(polyBegin + earcut_triangle_2.third_vertex),
96 *(polyBegin + shared_boundary.second), 96 *(polyBegin + shared_boundary.second),
97 *(polyBegin + earcut_triangle_1.third_vertex), 97 *(polyBegin + earcut_triangle_1.third_vertex),
98 }; 98 };
99 if (isConvex(quad)) { 99 if (quadrilateral_convexity(quad) == convexity_e::convex) {
100 result.quadrilaterals.push_back(quad); 100 result.quadrilaterals.push_back(quad);
101 result.cutTriangles.insert(earcut_triangle_1.triangleid); 101 result.cutTriangles.insert(earcut_triangle_1.triangleid);
102 result.cutTriangles.insert(earcut_triangle_2.triangleid); 102 result.cutTriangles.insert(earcut_triangle_2.triangleid);
103 return true; 103 return true;
104 } 104 }

mercurial