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 } |