In the middle of implementing Catmull-Clark

This commit is contained in:
Stephen M. McQuay
2012-05-09 00:32:34 -06:00
parent 8b540012c1
commit ba1ec89c27
8 changed files with 142 additions and 344 deletions
+5
View File
@@ -0,0 +1,5 @@
from .cc import TestCC
__all__ = [
TestCC.__name__,
]
+24
View File
@@ -0,0 +1,24 @@
import json
import os
import unittest
from surf.geometry import PolygonMesh
from surf.subd import cc
class TestCC(unittest.TestCase):
def setUp(self):
path, file_name = os.path.split(__file__)
self.samples_dir = os.path.join(path, os.pardir, os.pardir, os.pardir,
'blender', 'samples')
self.cube_file_name = os.path.join(self.samples_dir, 'cube.json')
self.cube = json.load(open(self.cube_file_name, 'r'))
def test_refine(self):
p = PolygonMesh(**self.cube)
p2 = cc.refine(p)
print p2
if __name__ == '__main__':
unittest.main(verbosity=3)