Divide by Zero Tangents

Although, this is obviously mathmatically correct, a user may want it do something different. Right now egg-trans -tbnall calculates normals and binormals correctly, but when a model is unwrapped such that 2 adjacent points occupy the same the UV coordinates, it obviously generates a divide zero problem and what gets output is -#IND, -#IND, -#IND

Perhaps it should do something else so that the model can be used?

Hmm, you’re right. Probably the only sensible thing to do is to pick an arbitrary vector in this case. I’ll make that change.


Is the tangent generation producing a tangent which is the average of the tangents of the adjacent polygons?

If so, could the formula simply ignore the degenerate polygon?