Commit b8f6da60 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix display of number of vertices

parent fb0530ea
...@@ -442,7 +442,7 @@ class GcodeModel(Model): ...@@ -442,7 +442,7 @@ class GcodeModel(Model):
t_end = time.time() t_end = time.time()
logging.log(logging.INFO, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start)) logging.log(logging.INFO, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start))
logging.log(logging.INFO, _('Vertex count: %d') % (len(self.vertices) + len(self.travels))) logging.log(logging.INFO, _('Vertex count: %d') % ((len(self.vertices) + len(self.travels)) / 3))
def copy(self): def copy(self):
copy = GcodeModel() copy = GcodeModel()
...@@ -665,7 +665,7 @@ class GcodeModelLight(Model): ...@@ -665,7 +665,7 @@ class GcodeModelLight(Model):
t_end = time.time() t_end = time.time()
logging.log(logging.INFO, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start)) logging.log(logging.INFO, _('Initialized 3D visualization in %.2f seconds') % (t_end - t_start))
logging.log(logging.INFO, _('Vertex count: %d') % len(self.vertices)) logging.log(logging.INFO, _('Vertex count: %d') % (len(self.vertices) / 3))
def copy(self): def copy(self):
copy = GcodeModelLight() copy = GcodeModelLight()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment