dilevin / computer-graphics-meshes

Computer Graphics Assignment about Meshes
1 stars 6 forks source link

Catmull-Clark Subdivision Strange Torus #24

Open RajarupanSampanthan opened 4 years ago

RajarupanSampanthan commented 4 years ago

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 : Screenshot from 2020-02-19 16-30-29

This is my torus after 7 subdivisions : Screenshot from 2020-02-19 16-24-19

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?