Skip to content

Commit 7a299c7

Browse files
committed
fix bug in name propagation
1 parent 7fffdef commit 7a299c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compas/datastructures/mesh/core/halfedge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,8 @@ def summary(self):
15641564
-------
15651565
str
15661566
"""
1567-
tpl = "\n".join(["Mesh summary", "============", "- vertices: {}", "- edges: {}", "- faces: {}"])
1568-
return tpl.format(self.number_of_vertices(), self.number_of_edges(), self.number_of_faces())
1567+
tpl = "\n".join(["{} summary", "=" * (len(self.name) + len(" summary")), "- vertices: {}", "- edges: {}", "- faces: {}"])
1568+
return tpl.format(self.name, self.number_of_vertices(), self.number_of_edges(), self.number_of_faces())
15691569

15701570
def number_of_vertices(self):
15711571
"""Count the number of vertices in the mesh."""

0 commit comments

Comments
 (0)