|
@@ -96,7 +96,7 @@ void SweepContext::InitTriangulation()
|
|
|
|
|
|
void SweepContext::InitEdges(std::vector<Point*> polyline)
|
|
void SweepContext::InitEdges(std::vector<Point*> polyline)
|
|
{
|
|
{
|
|
- int num_points = polyline.size();
|
|
|
|
|
|
+ int num_points = static_cast<int>(polyline.size());
|
|
for (int i = 0; i < num_points; i++) {
|
|
for (int i = 0; i < num_points; i++) {
|
|
int j = i < num_points - 1 ? i + 1 : 0;
|
|
int j = i < num_points - 1 ? i + 1 : 0;
|
|
edge_list.push_back(new Edge(*polyline[i], *polyline[j]));
|
|
edge_list.push_back(new Edge(*polyline[i], *polyline[j]));
|