[Bf-committers] help with tessface, CustomData and MTFace

Dalai Felinto dfelinto at gmail.com
Sun Jan 5 18:28:13 CET 2014

Hi there,
Anyone  familiar with CustomData and tessface here?

I'm trying to figure out why this function is only working for the first face:

I'm getting bad data when trying to read the MTFace for any face that
is not the first one:

((MTFace *)&cdl[0])->uv
{0.500000238, 1}, {0, 0}, {1, 0}, {0, 0}}

((MTFace *)&cdl[1])->uv
{{0, 0}, {0.500000238, 1}, {0, 0}, {0, 0}}

((MTFace *)&cdl[2])->uv
{{7.87199301e+31, 1.17082983e-19}, {2.17010503e-18,
2.61866902e+20}, {2.61048549e+20, 2.95921708e+21}, {
  6.9779858e+22, 4.66808809e+24}}

As you can see the 2nd face is bad (2 verts are at 0, 0) and the 3rd
one is totally bogus. The mesh itself is very simple, if you want to
check out (it's the one in 3-Tris):

While at there another question:
Is there any way to get the number of verts of a MTFace?


More information about the Bf-committers mailing list