Closed russkel closed 6 years ago
Many thanks for the report. The bug was a simple typo. Will be fixed with next release.
Thanks @BruceSherwood. Could you please explain what the idea behind the triangle count code? I noticed it fell over when I tried to set the vs attribute of a quad object. It gave an error saying the triangle count was already 0.
Here are the two typos that had to be changed in vpython.py:
# @v3.setter => @v3.setter
elif i == 4: self.v3 = val => elif i == 3: self.v3 = val
These mistakes led indirectly to irrelevant error messages.
I have the following code:
If I do
nodes[nx * N + ny].fill.vs[3]
it returns a None object. I debugged into the code and tried to find out why but I can't work it out. I also don't understand what is happening with the decrement/incrementTriangleCount code.