Rename Polygon.count to Polygon.elementCount and return the proper element count

This commit is contained in:
Arjen Hiemstra 2015-04-28 11:50:54 +02:00
parent 9dbff5a109
commit 52868ec01e

View file

@ -30,7 +30,7 @@ class LayerData(MeshData):
for polygon in data: for polygon in data:
polygon.build() polygon.build()
self._element_counts[layer].append(polygon.count) self._element_counts[layer].append(polygon.elementCount)
class Polygon(): class Polygon():
NoneType = 0 NoneType = 0
@ -86,5 +86,5 @@ class Polygon():
return self._data return self._data
@property @property
def count(self): def elementCount(self):
return self._end - self._begin return (self._end - self._begin) * 2 #The range of vertices multiplied by 2 since each vertex is used twice