My ./quad_subdivision solution works for the cube.obj, and rubber-ducky.obj, but I'm having some issues with the sphere.obj and torus.obj cases.
With the torus.obj case, I believe my algorithm works correctly for the most part, but it breaks when it does the subdivision 7 times.
This is my torus after 1 subdivision :
This is my torus after 7 subdivisions :
It seems to generate a weird twisting cube that goes from one end of the torus to the other end. Has anyone else run into this bug or have any idea what the issue might be?
My ./quad_subdivision solution works for the cube.obj, and rubber-ducky.obj, but I'm having some issues with the sphere.obj and torus.obj cases.
With the torus.obj case, I believe my algorithm works correctly for the most part, but it breaks when it does the subdivision 7 times.
This is my torus after 1 subdivision :
This is my torus after 7 subdivisions :
It seems to generate a weird twisting cube that goes from one end of the torus to the other end. Has anyone else run into this bug or have any idea what the issue might be?