Optimization: std::vector<bool> can be quite slow to access

This commit is contained in:
Lukas Matena 2022-12-06 12:18:05 +01:00
parent fe3a15942b
commit 85ad56b43b
3 changed files with 3 additions and 3 deletions

View file

@ -1805,7 +1805,7 @@ Polygons slice_mesh(
{
bool trafo_identity = is_identity(params.trafo);
Transform3f tf;
std::vector<bool> face_mask(mesh.indices.size(), false);
std::vector<char> face_mask(mesh.indices.size(), 0);
{
// 1) Mark vertices as below or above the slicing plane.