7dir / aframe-svgfile-component

aframe svgfile
https://7dir.github.io/aframe-svgfile-component/
18 stars 7 forks source link

each path as new Object3D #3

Closed morandd closed 7 years ago

morandd commented 7 years ago

In the original implementation all SVG paths are aggregated together into a single string.

In my case this resulted in problems when polygons overlap, for example in this text image: overlaptest.svg.txt

Overlapping paths create holes in the mesh. This is some issue in svg-mesh-3d. hole

I've filed this as a bug: https://github.com/mattdesl/svg-mesh-3d/issues/6

This branch avoids the issue by iterating over each item in the SVG and adding each individually so the element's object3d group.

I also:

thanks for your work on this valuable AFrame component

7dir commented 7 years ago

Can U add Width or Height demo? https://github.com/7dir/aframe-svgfile-component/issues/5

7dir commented 7 years ago

debug demo? https://github.com/7dir/aframe-svgfile-component/issues/6

7dir commented 7 years ago

add demo with warnings if the SVG contains or other currently unsupported tags https://github.com/7dir/aframe-svgfile-component/issues/7

7dir commented 7 years ago

@morandd ping