Skip to content

Commit

Permalink
Reduce the badness of a FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
sjackso committed Apr 15, 2019
1 parent 4268dfb commit e1d9ed7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/athena/plymesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1d9ed7

Please sign in to comment.