From c324fb281fccaf35afe5402b68595dc09b24acd3 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Mon, 7 May 2012 23:30:36 -0600 Subject: [PATCH] refactor of Polygon to PolygonMesh --- surf/subd/cc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/surf/subd/cc.py b/surf/subd/cc.py index 5bba3ef..ca6bfb3 100644 --- a/surf/subd/cc.py +++ b/surf/subd/cc.py @@ -1,8 +1,8 @@ -from surf.geometry import Vertex, Edge, Polygon +from surf.geometry import Vertex, Edge, PolygonMesh def sub_edges(self): - temp_p = Polygon() + temp_p = PolygonMesh() temp_p.edges = [Edge(), Edge()] # temp_p.vertices = sub_edges[0].vertices = [self.vertices[0], self.edge_vertex] @@ -203,7 +203,7 @@ def refine(poly): ''' # create a new storage container for the items - new_poly = Polygon() + new_poly = PolygonMesh() # for now just test with the first face start_face = poly.faces[0] @@ -282,4 +282,4 @@ def refine(poly): # # R = average of all edge vertices touching P # # P original point # # n = face vertices or edge vertices (should be the same number) - # return Polygon(vertices, edges, faces) + # return PolygonMesh(vertices, edges, faces)