-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Refactor: Torus Mesh optimization + javadoc #2466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
🖼️ Screenshot tests have failed. The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests. 📄 Where to find the report:
✅ If you did mean to change things: ✨ If you are creating entirely new tests: Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar". See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information Contact @richardTingle (aka richtea) for guidance if required |
@yaRnMcDonuts @richardTingle |
The tests that fail are one that uses the Torus so something has changed (although the difference is pretty subtle). Are the meshes you generate after your change identical to the ones before you change? |
You have subtle differences in your position and normal data. I used this within the torus class to print them out
For example position index 14 is 0.0 in master but 2.1855694E-8 in your branch |
The number |
Well yes, it is a very small difference. Why has it changed at all? Isn't this supposed to just be a refactor? (If it used to be 2.1855694E-8 and was now 0 I might say that was an improvement, but it's the other way round) If you really really wanted to do this you'd need to update the reference images (as the bot explained) but unexpected numerical changes worries me a bit. What's the reason for introducing this change? |
The last 85 PRs aim to enhance the Regarding this PR, it significantly simplifies the original code. While there might be minor differences in decimal values compared to the old algorithm—which duplicated initial vertices for loop closure and texture smoothing—I believe the overall result is a substantial improvement. So I revert the |
This PR significantly improves the
Torus
mesh by:vertexIndex
variable ingenerateGeometryData
.