Converting SVG paths with holes to extruded shapes in three.js
I have a shape that consists of 4 polygons: 2 non-holes and 2 holes. This is only an example. In reality there can be a shape that consists of 50 polygons, of which 20 are non-holes and 30 are holes. In SVG path this like polygon can be represented easily by combining moveto:s and lineto:s. Every sub-polygon (hole or non-hole) in path string starts with moveto-command and ends with z (end) command and non-holes have winding order CW and holes CCW. Very easy and intuitive. The shape in SVG is represented this way ( http://jsbin.com/osoxev/1/edit ): <path d="M305.08,241.97 L306,251.51 L308.18