SHARE
TWEET

Untitled

a guest Apr 26th, 2019 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 int polygon, vertex, polygonIndexCounter = 0;
  2.                 for(polygon = 0; polygon < polygonsCount; polygon++) {
  3.                     const int polygonSize = mesh->GetPolygonSize(polygon);
  4.                     for(vertex = 0; vertex < polygonSize; vertex++) {
  5.                         if(polygonIndexCounter >= indexCount) {
  6.                             continue;
  7.                         }
  8.                         FbxVector2 UVValue;
  9.                         int UVIndex = useIndex ? UVElement->GetIndexArray().GetAt(polygonIndexCounter) : polygonIndexCounter;
  10.                         UVValue = UVElement->GetDirectArray().GetAt(UVIndex);
  11.                         std::cout << "Found uv value: " << UVValue << std::endl;
  12.                         polygonIndexCounter++;
  13.                     }
  14.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top