Skip to content
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

Add a hollowcuboid iteration helper #190

Merged
merged 3 commits into from
Apr 23, 2024
Merged

Conversation

HybridDog
Copy link
Contributor

@HybridDog HybridDog commented Feb 12, 2020

This simplifies the area index calculation in the worldedit.cube function.
The hollowcuboid code is from https://github.com/minetest/minetest/pull/4479/files.
I did not notice a performance change, probably because there is much overhead. (I use the chatcommand_delays mod.)

Please test this (also for very small hollow cubes).

@sfan5
Copy link
Collaborator

sfan5 commented Apr 22, 2024

I added tests in 456ce8c. Can you rebase so the CI runs?

@HybridDog
Copy link
Contributor Author

It's rebased now and I've fixed problems in worldedit.cube. Thanks for the tests.

@sfan5 sfan5 merged commit cda772b into Uberi:master Apr 23, 2024
3 checks passed
@HybridDog HybridDog deleted the m_hollowcube_iter branch April 23, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants