|
Splitting verts is done in my app if any of the elements specify: KFbxLayerElement::eBY_POLYGON_VERTEX, meaning they refer to a vertex, not a control point.
So I do a scan of all the attributes to check for this.
This is assuming that lPolygonSize is always 3, so only triangles are supported.
vContPointRemap[lControlPointIndex].Push( I * 3UL + ui32VertIndex )
If you split verts, all the rest of your pipeline has to refer to the split verts, not the control points.
for example:
if (bSplit)
m_Vertices.resize(lPolygonCount * 3)
else
m_Vertices.resize(lControlPointsCount)
and anything else that refers to the control points has to be remapped as well.
Author: Doug Rogers
|