Only open file if we actually going to write triangles to it (reduce amount of file descriptors open)
Merge pull request #30 from Forceflow/working

Only open file if we actually going to write triangles to it (reduce amo...