SVGLoader

Currently, SVGLoader only returns the nodes.

I hink it’ll be a great improvement if the loader could convert svg nodes to THREE.Shape which could then be used by THREE.ShapeGeometry or THREE.ExtrudeGeometry. With that in place, adding svg support to the editor would make a few designers happy.

We happen to have some basic code already in webgl_geometry_extrude_shapes2:

https://github.com/mrdoob/three.js/blob/dev/examples/webgl_geometry_extrude_shapes2.html#L49-L389

Also, for reference, @jonobr1 has been tackling this same issue for two.js for a while now:

https://github.com/jonobr1/two.js/blob/dev/src/two.js#L798-L1475

Author: Fantashit

2 thoughts on “SVGLoader

Comments are closed.