Avoid infinite loop if geometry has no vertices/triangles
Merge pull request #79 from timoxley/bug/infinite-loop

Avoid infinite loop if geometry has no vertices/triangles