Well
that was an interesting way to spend an evening! I was about to start converting the CSV by hand, but balked at the 700+ lines of values. I decided it would be a lot more fun (for all concerned) to have a program to do this for me... so I wrote one myself.
CSV2OBJ
It's written in C and uses popup messageboxes for user interaction, which isn't the best interface I could've designed, but it does the job
Use the DE2 Editor to export the object of your choice as "Unique Polygons", and save the resultant CSV file into a folder with the CSV2OBJ.exe program. Double-click CSV2OBJ.exe and it will search the local directory for files with a .CSV extension. For each one it finds, it asks if you want to the file converted to an OBJ file; click Yes and it will then attempt to do so. If all goes well, you should end up with an OBJ file that you can hopefully import into BinEdit. It will appear with the faces inverted, but you just need to select everything and flip 'em to fix that.
Now you can spend all your time mapping it instead of pushing numbers around
Notes.
- The numbers stored in the CSV (that I've seen anyway) for vertex coords are floating-point numbers written to six decimal places. To preserve fidelity, when the program performs the file conversion these numbers are multiplied by 1 million and written as an integer. (This doesn't make any difference to BinEdit, which rescales the OBJ when read.)
- There's not much data checking, so I can't predict or guarantee what the results will be if you feed it a malformed CSV file. There are checks in place to stop if the numbers read from file exceed the program's face or vertex capacities however, which caught the deliberately incorrect file I tested it on.
- I've only really tested this on the Commodore CSV, but it works reliably for that and I've no reason to expect it not to work with any other CSV exported from DE2Edit (I'll probably go back and try a few others myself soon).
That's all. Go have some fun