We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This function doesn't seem to work at all. Is there more information about this function ?
The text was updated successfully, but these errors were encountered:
Have you allocated the needed memory structures? The doc lacks detail on that. Here is code that works for me:
hr = GetFaceModelTriangleCount((UINT32*)&m_HDFaceModelTriangleCount); if (SUCCEEDED(hr)) { m_pHDFaceModelTriangleVertexIndices = (UINT32*)malloc(m_HDFaceModelTriangleCount * 3 * sizeof(UINT32)); if (m_pHDFaceModelTriangleVertexIndices) { hr = GetFaceModelTriangles(m_HDFaceModelTriangleCount * 3, m_pHDFaceModelTriangleVertexIndices); } else { hr = E_OUTOFMEMORY; } }
Sorry, something went wrong.
Ah perfect. That works. I was mislead by the function name. Was using triangle count as capacity. Should be triangleCount * 3
Thanks!
No branches or pull requests
This function doesn't seem to work at all. Is there more information about this function ?
The text was updated successfully, but these errors were encountered: