Re:3D Wireframes Using SVG
by piadodjanho on Monday July 08, 2019 @02:56PM
(#20385646)
Nice. But 17 digits of of precision is on the rendered drawing bit much.
[ Parent
| on HN ]
Re:3D Wireframes Using SVG
by eldavojohn on Monday July 08, 2019 @03:30PM
(#20385943)
Yeah this is crazy neat but the unnecessary precision is a real bummer that could be solved by just restricting things to three decimal places. For example when I use a utility like https://jakearchibald.github.io/svgomg/ to optimize, I see a 3.53k -> 2.21k reduction for the sphere with lighting. This is not just from precision reduction but also using simple paths over polygons ... there could likely be increased size savings by "rolling up" the fills in the final output.
Still a crazy neat tool but targeting edges as paths instead of polygons would save quite a few bites when hosting this stuff.