7dir / aframe-svgfile-component

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

width and height should be done using the "scale" component #10

Closed morandd closed 7 years ago

morandd commented 7 years ago

Currently I implemented width and height by rescaling each vertex in the underlying mesh. Would be cleaner to leave these untouched and simply create or adjust the "scale" component of the AFrame entity.

morandd commented 7 years ago

ps. I'm not clear how the scaling works if width or height aren't specified. I thought since you had normalize:1 in the svgobject3d, it would return coordinates in a unit box (0-1 range).