Writing .dat to .obj converter in JS, but having BFC problems


Re: Writing .dat to .obj converter in JS, but having BFC problems
#7
Hi there!

I've emailed Rolf Redford about this - he's the author of LdrDat2Obj

In his reply he said....

My solution was pretty simple.

My program sets invert flag when it reads invertnext line. It sets it false when it finish processing that line.

When it writes out, it does this

For triangle:

Code:
if (!inverted)
                writetype3obj(color, p1, p2, p3, writefile);
            else
                writetype3obj(color, p1, p3, p2, writefile);
or for rectangle:

            if (!inverted)
                writetype4obj(color, p1, p2, p3, p4, writefile);
            else
                writetype4obj(color, p1, p4, p3, p2, writefile);


I hope this helps.

Reuben

=====================================
Download 3D Lego models and other resources from:
http://www.pearse.co.uk/lego
=====================================
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Writing .dat to .obj converter in JS, but having BFC problems - by Reuben Pearse - 2012-12-31, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)