mirror of https://github.com/CGAL/cgal
Workaround for Visual 2017
This commit is contained in:
parent
db44300956
commit
91ee4fa605
|
|
@ -1552,19 +1552,33 @@ bool autorefine_triangle_soup(PointRange& soup_points,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
tbb::parallel_for(tbb::blocked_range<size_t>(0, new_triangles.size()),
|
// The constexpr was initially inside the lammbda, but that did not compile with VC 2017
|
||||||
[&](const tbb::blocked_range<size_t>& r) {
|
if constexpr(std::is_same_v<Visitor, Wrap_snap_visitor>){
|
||||||
for (size_t ti = r.begin(); ti != r.end(); ++ti)
|
tbb::parallel_for(tbb::blocked_range<size_t>(0, new_triangles.size()),
|
||||||
{
|
[&](const tbb::blocked_range<size_t>& r) {
|
||||||
soup_triangles_out[offset + ti] =
|
for (size_t ti = r.begin(); ti != r.end(); ++ti)
|
||||||
{ triangle_buffer[ti][0]->second,
|
{
|
||||||
triangle_buffer[ti][1]->second,
|
soup_triangles_out[offset + ti] =
|
||||||
triangle_buffer[ti][2]->second };
|
{ triangle_buffer[ti][0]->second,
|
||||||
if constexpr(std::is_same_v<Visitor, Wrap_snap_visitor>)
|
triangle_buffer[ti][1]->second,
|
||||||
visitor.new_subdivision(soup_triangles_out[offset + ti], soup_triangles[tri_inter_ids_inverse[new_triangles[ti].second]]);
|
triangle_buffer[ti][2]->second };
|
||||||
|
visitor.new_subdivision(soup_triangles_out[offset + ti], soup_triangles[tri_inter_ids_inverse[new_triangles[ti].second]]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
);
|
||||||
);
|
}else{
|
||||||
|
tbb::parallel_for(tbb::blocked_range<size_t>(0, new_triangles.size()),
|
||||||
|
[&](const tbb::blocked_range<size_t>& r) {
|
||||||
|
for (size_t ti = r.begin(); ti != r.end(); ++ti)
|
||||||
|
{
|
||||||
|
soup_triangles_out[offset + ti] =
|
||||||
|
{ triangle_buffer[ti][0]->second,
|
||||||
|
triangle_buffer[ti][1]->second,
|
||||||
|
triangle_buffer[ti][2]->second };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue