From e1d9ed745f6ac6e45be9693a1fb1e251fe5eb320 Mon Sep 17 00:00:00 2001 From: Steve Jackson Date: Mon, 15 Apr 2019 15:57:27 -0700 Subject: [PATCH] Reduce the badness of a FIXME --- src/athena/plymesh.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/athena/plymesh.py b/src/athena/plymesh.py index cdfb4cd..3a93cd0 100644 --- a/src/athena/plymesh.py +++ b/src/athena/plymesh.py @@ -82,9 +82,8 @@ def __init__(self, parent, plydata): num_tris = len(faces) - num_large_faces num_interior_tris = sum(len(x) for x in large_faces) - # FIXME: overallocation occurs here. In the limit we would need to create - # interior-flavor copies of all vertices, but in practice we won't usually need that. - total_vertices = len(vertices) * 2 + # FIXME: some overallocation occurs here. + total_vertices = len(vertices) + (num_interior_tris * 3) total_tris = num_tris + num_interior_tris vertex_basetype = _basetypes.Float