refactor of Polygon to PolygonMesh
This commit is contained in:
parent
6c516e26fc
commit
c324fb281f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user