Skip to content

Index error in combine #796

@adamorangeqs

Description

@adamorangeqs

We get an index error in the combine function.

The error comes from this line (56):
new_tris = [(new_tris[i], new_tris[i+1], new_tris[i+2]) for i in range(0, len(new_tris)-1, 3)]

If i = len(new_tris) - 2, then i+2 = len(new_tris), so we get an index error in new_tris[i+2].

The correct line should be:
new_tris = [(new_tris[i], new_tris[i+1], new_tris[i+2]) for i in range(0, len(new_tris)-2, 3)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions