Cleanup: Correct comment and add note

I think the limit is unnecessary because I can't think of a good
reason for it and there is no reasoning in the git history.
This commit is contained in:
Hans Goudey
2024-09-10 15:11:01 -04:00
parent b748cf316f
commit 8cd80b0fac

View File

@@ -503,10 +503,7 @@ std::unique_ptr<Tree> build_grids(const Mesh &base_mesh, const SubdivCCG &subdiv
return pbvh;
}
/* Ensure leaf limit is at least 4 so there's room
* to split at original face boundaries.
* Fixes #102209.
*/
/* See #102209. NOTE: This `max_grids` limit may be unnecessary. */
const int leaf_limit = max_ii(LEAF_LIMIT / (key.grid_area), max_grids);
/* For each grid, store the AABB and the AABB centroid */