mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Rename Polygon.count to Polygon.elementCount and return the proper element count
This commit is contained in:
parent
9dbff5a109
commit
52868ec01e
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ class LayerData(MeshData):
|
|||
|
||||
for polygon in data:
|
||||
polygon.build()
|
||||
self._element_counts[layer].append(polygon.count)
|
||||
self._element_counts[layer].append(polygon.elementCount)
|
||||
|
||||
class Polygon():
|
||||
NoneType = 0
|
||||
|
@ -86,5 +86,5 @@ class Polygon():
|
|||
return self._data
|
||||
|
||||
@property
|
||||
def count(self):
|
||||
return self._end - self._begin
|
||||
def elementCount(self):
|
||||
return (self._end - self._begin) * 2 #The range of vertices multiplied by 2 since each vertex is used twice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue