update tests to unittest2 (or unittest py2.7)

This commit is contained in:
Stephen M. McQuay 2012-06-08 11:47:19 -06:00
parent a45c84c183
commit 7559887e0f
7 changed files with 4 additions and 28 deletions

View File

@ -1,6 +1,6 @@
from .vertex import TestVertex from .test_vertex import TestVertex
from .edge import TestEdge from .test_edge import TestEdge
from .polymesh import TestPM from .test_polymesh import TestPM
from .subd.cc import TestCC from .subd.cc import TestCC

View File

@ -1,4 +1,4 @@
from .cc import TestCC from .test_cc import TestCC
__all__ = [ __all__ = [
TestCC.__name__, TestCC.__name__,

View File

@ -1,24 +0,0 @@
from surf.util import cube
from surf.subd import cc
polygon = cube()
print(polygon)
refined_poly = cc.refine(polygon)
print(refined_poly)
#
#
# import pylab
# import mpl_toolkits.mplot3d.axes3d as p3
#
# fig = pylab.figure()
# ax = p3.Axes3D(fig)
# for edge in newPolygon.edges:
# xs = [vertex.x for vertex in edge.vertices]
# ys = [vertex.y for vertex in edge.vertices]
# zs = [vertex.z for vertex in edge.vertices]
# ax.plot_wireframe(xs, ys, zs)
# ax.set_xlabel('X')
# ax.set_ylabel('Y')
# ax.set_zlabel('Z')
# pylab.show()