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
|
A vertex is a position along with other information such as color, normal
|
||||||
vector and texture coordinates.
|
vector and texture coordinates.
|
||||||
'''
|
'''
|
||||||
next_id
|
def __init__(self, x=0.0, y=0.0, z=0.0):
|
||||||
def __init__(self, polygon, parent_id=None, x=None, y=None, z=None, es=None):
|
|
||||||
'''
|
'''
|
||||||
'''
|
'''
|
||||||
self.polygon = polygon
|
|
||||||
self.parent_id = parent_id
|
|
||||||
self.x = x
|
self.x = x
|
||||||
self.y = y
|
self.y = y
|
||||||
self.z = z
|
self.z = z
|
||||||
self.edge_ids = es or []
|
|
||||||
self.id = Vertex.next_id
|
|
||||||
Vertex.next_id += 1
|
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
if(self.x == other.x and self.y == other.y and self.z == other.z):
|
if(self.x == other.x and self.y == other.y and self.z == other.z):
|
||||||
|
Loading…
Reference in New Issue
Block a user