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:
I hope this helps.
Reuben
=====================================
Download 3D Lego models and other resources from:
http://www.pearse.co.uk/lego
=====================================
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
=====================================