Optimization: std::vector<bool> can be quite slow to access
This commit is contained in:
parent
fe3a15942b
commit
85ad56b43b
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue