whitequark,
@whitequark@mastodon.social avatar

hm, what's a good way to convert an SVG path to CSV?

mcc,
@mcc@mastodon.social avatar

@whitequark Would you like a boost?

I think I could do it relatively quickly with the c library nanosvg but it's not the most convenient interface and it might be more work if you don't already have a personal version rigged up to use (I remember forking it very slightly to fix bugs, but not which ones)

whitequark,
@whitequark@mastodon.social avatar

@mcc can i give you one file and get back a list of points in [0,4095] range?

mcc,
@mcc@mastodon.social avatar

@whitequark Thinks probably yes actually, but only if you gave me 24 hours. We were about to do dinner over here.

You want the points equally spaced? Equal spacing seems like the most difficult part of this.

whitequark,
@whitequark@mastodon.social avatar

@mcc i need it right now for "time on instrument" reasons

mcc,
@mcc@mastodon.social avatar

@whitequark Oh, unfortunate :(

masukomi,
@masukomi@connectified.com avatar

@mcc @whitequark before reading the thread, I thought this was a joke. I feel like no one should ever have to need this.

whitequark,
@whitequark@mastodon.social avatar

@masukomi @mcc it's for focused ion beam milling reasons

masukomi, (edited )
@masukomi@connectified.com avatar

@whitequark @mcc a) I had no idea that focused ion being milling was a thing and now I need to go look it up to determine if it is as cool as it sounds b) when you said “time on machine”, I thought you were having to justify your work existence to a jerk manager. this seems way better

masukomi,
@masukomi@connectified.com avatar

@whitequark @mcc I have confirmed that focused ion beam milling is as cool as it sounds ;)

whitequark,
@whitequark@mastodon.social avatar
whitequark,
@whitequark@mastodon.social avatar

apparently, something like this:

path=document.getElementById('path6147'); svg=""; count=131072; step=path.getTotalLength()/count; for(let n=0; n<count; n++) { const pt=path.getPointAtLength(step*n); svg+=${pt.x},${pt.y}\n; }

(although chrome is still computing, a few minutes later)

whitequark,
@whitequark@mastodon.social avatar

chrome has pegged a core doing what?

whitequark,
@whitequark@mastodon.social avatar

only something like 10 minutes later, it has managed to rasterize 128Ki points

time to shove them all into excel and edit manually or something

whitequark,
@whitequark@mastodon.social avatar

friendship ended with inkscape
now excel is my favorite vector graphics editor

whitequark,
@whitequark@mastodon.social avatar

i think i might do the next processing step with numpy and matplotlib instead

cr1901,
@cr1901@mastodon.social avatar

@whitequark Is that the current logo, 'cept flipped vertically?

whitequark,
@whitequark@mastodon.social avatar

@cr1901 yeah, different coordinate system

cr1901,
@cr1901@mastodon.social avatar

@whitequark I tried for several minutes to map the plot back to the logo in the docs, and failed miserably until I noticed it was flipped lmao.

adamsaidsomething,

@whitequark
If your looking for a weekend project you can also make a 3D engine in Excel:
https://www.gamedeveloper.com/design/microsoft-excel-revolutionary-3d-game-engine-

promovicz,
@promovicz@chaos.social avatar

@whitequark I am the very model of a modern browser general […]

ghosttie,
@ghosttie@mastodon.gamedev.place avatar

@whitequark just, uh, substitute a couple of the letters

stefan_hessbrueggen,
@stefan_hessbrueggen@fedihum.org avatar
whitequark,
@whitequark@mastodon.social avatar

@stefan_hessbrueggen this is irrelevant

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • PowerRangers
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • khanakhh
  • Youngstown
  • everett
  • slotface
  • tacticalgear
  • rosin
  • thenastyranch
  • kavyap
  • tsrsr
  • ethstaker
  • Leos
  • vwfavf
  • GTA5RPClips
  • Durango
  • osvaldo12
  • cisconetworking
  • hgfsjryuu7
  • InstantRegret
  • cubers
  • modclub
  • normalnudes
  • ngwrru68w68
  • tester
  • anitta
  • All magazines