got vertex tests to pass again
This commit is contained in:
parent
4556eb9ad9
commit
475b9dd25d
@ -30,18 +30,12 @@ class Vertex(object):
|
||||
A vertex is a position along with other information such as color, normal
|
||||
vector and texture coordinates.
|
||||
'''
|
||||
next_id
|
||||
def __init__(self, polygon, parent_id=None, x=None, y=None, z=None, es=None):
|
||||
def __init__(self, x=0.0, y=0.0, z=0.0):
|
||||
'''
|
||||
'''
|
||||
self.polygon = polygon
|
||||
self.parent_id = parent_id
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.z = z
|
||||
self.edge_ids = es or []
|
||||
self.id = Vertex.next_id
|
||||
Vertex.next_id += 1
|
||||
|
||||
def __eq__(self, other):
|
||||
if(self.x == other.x and self.y == other.y and self.z == other.z):
|
||||
|
Loading…
Reference in New Issue
Block a user