2012-04-16 00:11:27 -07:00
|
|
|
from surf.util2 import cube
|
|
|
|
from surf.subd import cc2
|
2012-04-14 19:35:05 -07:00
|
|
|
|
2012-04-16 00:11:27 -07:00
|
|
|
poly = cube()
|
|
|
|
# print poly
|
2012-04-14 19:35:05 -07:00
|
|
|
|
2012-04-16 00:11:27 -07:00
|
|
|
refined_poly = cc2.refine(poly)
|
|
|
|
# print refined_poly
|
2012-04-14 19:35:05 -07:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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()
|