_type_ FbxLayerElementAccess::GetElement()

in src/fbx/FbxLayerElementAccess.hpp [61:75]


_type_ FbxLayerElementAccess<_type_>::GetElement(
    const int polygonIndex,
    const int polygonVertexIndex,
    const int controlPointIndex,
    const _type_ defaultValue) const {
  if (mappingMode != FbxLayerElement::eNone) {
    int index = (mappingMode == FbxLayerElement::eByControlPoint)
        ? controlPointIndex
        : ((mappingMode == FbxLayerElement::eByPolygonVertex) ? polygonVertexIndex : polygonIndex);
    index = (indices != nullptr) ? (*indices)[index] : index;
    _type_ element = elements->GetAt(index);
    return element;
  }
  return defaultValue;
}