TomaszLloyd / NaiveSurfaceNets

Unity C# Naive Surface Net implementation
77 stars 12 forks source link

Unused variable and unused code #2

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi, im trying to understand Your code, more specifically, ComputeMesh() function. Found that, the local array values line 412 412: float[] grid = new float[8]; arent anywhere assigned, which leads to always execute continue at line 463

That means, code after that line is not needed. line 454

So, that loop only count 1 bits in edgeMask, im right? Is that a bug or ?

ghost commented 4 years ago

Also, we counting those bits from edgeMask to perform those calculations to get vertex variable: line 481 And after that, we overwriting vertex variable from voxels array line 483