You can avoid some allocations by using the [`Iterator::chain`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.chain) method in `quad_tris` instead of allocating a `Vec`.