/catmullclark

Solution for Rosetta Code Catmull–Clark subdivision surface task in Python

Primary LanguagePythonMIT LicenseMIT

Solution for Rosetta Code Catmull-Clark subdivision surface task in Python

http://rosettacode.org/wiki/Catmull%E2%80%93Clark_subdivision_surface

cmc.py - my solution to the task

Does not handle holes or faces without 4 points.

Example outputs

inputcube.png - input with no subdivisions
onesubdiv.png - output with one subdivision
twosubdiv.png - two subdivisions
foursubdiv.png - four