is there any way to get the position (index) of a face in the m.faces vector
without an iterator?
I am asking because the way i'm testing for repeated uv coords relies on
testing adjacent faces, with the adjacent face declared like:
CFaceO* adj = fit->FFp(y); //where fit is an iterator for the current face
and if the test for identical uv coords between the current face and an
adjacent face is true, i'd like to know what the position of that adjacent
face is in the m.faces vector so I can copy it's uv coord index that i've
stored in a temporary data structure.
thanks,
imran
On Wed, Mar 5, 2008 at 1:46 PM, skunkwerk <sku...@gm...> wrote:
> i was looking at the saved collada file from meshlab and noticed that
> texture coords were being repeated (as there are two coords per vertex, and
> the save function is generating them by iterating through faces-which may
> have the same vertices). so i wanted to change the floatarraytag in
> colladaformat.h to generate the tex coords per vertex (thus maintaining
> uniqueness) rather than by face, but i couldn't figure out how to do it:
>
> there is 'vit' which is a vertex vector iterator, so i thought i could do
> QString::number(vit->T().U()) or something but that didn't work.
> the face vector iterator currently does: QString::number(fit->cWT(ii).U())
>
> how should i do this?
>
> thanks,
> imran
>
|