mirror of https://github.com/CGAL/cgal
fix compilation errors
This commit is contained in:
parent
0819991b59
commit
c528f09722
|
|
@ -138,12 +138,7 @@ void mc_construct_triangles(const int i_case, const Vertices_& vertices, Triangl
|
|||
const int eg2 = Cube_table::triangle_cases[t_index + 2];
|
||||
|
||||
// insert new triangle in list
|
||||
std::array<Point, 3> points;
|
||||
points[0] = vertices[eg0];
|
||||
points[1] = vertices[eg1];
|
||||
points[2] = vertices[eg2];
|
||||
|
||||
triangles.push_back(points);
|
||||
triangles.push_back({vertices[eg0], vertices[eg1], vertices[eg2]});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -156,11 +151,7 @@ void to_indexed_face_set(const TriangleList& triangle_list, PointRange& points,
|
|||
points.push_back(triangle[1]);
|
||||
points.push_back(triangle[2]);
|
||||
|
||||
polygons.push_back({});
|
||||
auto& triangle = polygons.back();
|
||||
triangle.push_back(id + 2);
|
||||
triangle.push_back(id + 1);
|
||||
triangle.push_back(id + 0);
|
||||
polygons.push_back({id + 2, id + 1, id + 0});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue