mrdoob/three.js — pull request #2388 by jonobr1 (2012-09-06 21:33:42+00:00)
Title: Optimization when options.amount = 0

I did this edit through the github interface, so I hope it worked correctly and with the right branches and everything..,

but I added if statements to only add vertices and faces when actually needed. It used to be when I passed a `THREE.Shape`, let's say a triangle with 3 vertices and `options.amount = 0;` it would generate a geometry with 6 vertices and cause weird clipping because of overlapping fills. This commit fixes that issue.