Hi Adrian,
On 10/10/2014 4:17 AM, Adrian Rossiter wrote:
> That sounds like the best option for now. While the other converters
> have their own executable the conversion to OBJ might be missed if
> it was an off2crds option.
The other problem is the converters all have unique parameters. I just
thought this isn't the first time we've heard about OBJ conversion so I
thought maybe it was time to add it.
I have in place the code to generate the OBJ file output which matches
the script output. I started off2obj from a copy of off2crds, then it
calls a new line of functions which mirror the off2crds pathway.
In off2crds, significant digits is hard coded to 17 while the other code
has the built in definition. I used the definition in off2obj but do you
want it as 17 in off2crds or is that an oversight? If so, I can change
it to the definition when pushing everything else.
In off_write in off_polys_write you have an offset. This appears to be
if you want to start indexing faces from something other than zero (I
used an offset in the code for OBJ since indexes start from 1). But for
colored vertices it doesn't add the offset. Looking at the code closer I
am not sure what this offset was for so I didn't change it.
Roger