Voxelers/mcthings

Implement the flip_x operation

acs opened this issue · 5 comments

acs commented

In order to fix the flip issue, the best approach is to implement the flip operation in mcthings.

What is to flip? You can flip with X (right side to the left), Y (close side to further side) and Z (up side to down side).

Screenshot from 2020-06-30 06-46-10
Screenshot from 2020-06-30 06-50-32
Screenshot from 2020-06-30 06-50-44
Screenshot from 2020-06-30 06-50-58
Screenshot from 2020-06-30 06-51-12

acs commented

Let's focus in flip x that it the initial issue we have when importing vox files to minecraft (the x positive in MV is the opposite in MC).

wool_wall

acs commented

All done for flip_x. If we need to implement flip_y or flip_z I will do it. It is pretty easy.

acs commented

Screenshot from 2020-06-30 08-33-17

acs commented

Let's implement it also for flip_y and flip_z and let's also add tests to be sure all is working in the future.

acs commented

Added tests for flip_x and used with reposition at https://github.com/Voxelers/mcthings_scenes/blob/develop/apps/scene_magicavoxel.py#L68

If we need other flips, I will add them. Time to close this issue.