osresearch / plotter-vision

Hidden Wireframe removal demo in p5.js
GNU General Public License v2.0
83 stars 17 forks source link

Optimize SVG before download #18

Closed osresearch closed 3 years ago

osresearch commented 3 years ago

image

The n^2 vector sorter could be applied prior to download so that the SVG doesn't generate double strikes, as seen in Heiko's #plottertwitter tweet

osresearch commented 3 years ago

vecsort code (in C) should be straightforward to port: https://github.com/osresearch/polargraph/blob/master/vecsort.c

osresearch commented 3 years ago

Deployed with duplicate edge removing and greedy sort