Skip to content

Commit b2c29e7

Browse files
committed
demo: Clarify usage of groupmap[]
1 parent 6481f50 commit b2c29e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

demo/nanite.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static std::vector<std::vector<int> > partition(const std::vector<Cluster>& clus
212212

213213
static void lockBoundary(std::vector<unsigned char>& locks, const std::vector<std::vector<int> >& groups, const std::vector<Cluster>& clusters, const std::vector<unsigned int>& remap)
214214
{
215+
// for each remapped vertex, keep track of index of the group it's in (or -2 if it's in multiple groups)
215216
std::vector<int> groupmap(locks.size(), -1);
216217

217218
for (size_t i = 0; i < groups.size(); ++i)

0 commit comments

Comments
 (0)