![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Functions | |
| QSSGMesh::Mesh | buildMesh (const QSSGGltfDocument &document, const QSSGGltf::Mesh &mesh, const GltfSceneConverter::Options &options, QList< int > *usedPrimitives, GltfMorphTargetInfo *morphInfo) |
| QSSGMesh::Mesh GltfMeshBuilder::buildMesh | ( | const QSSGGltfDocument & | document, |
| const QSSGGltf::Mesh & | mesh, | ||
| const GltfSceneConverter::Options & | options, | ||
| QList< int > * | usedPrimitives = nullptr, | ||
| GltfMorphTargetInfo * | morphInfo = nullptr ) |
Builds a QSSGMesh::Mesh from the glTF mesh mesh in document, with one subset per triangle primitive. Primitives with non-triangle topology that cannot be converted (points and lines) are skipped with a warning. Returns an invalid mesh when no primitive could be converted. When usedPrimitives is given, it receives the indices of the source primitives that became subsets, in subset order, so callers can build a matching material list. morphInfo receives the number of morph targets stored in the mesh and which attributes they carry.
Definition at line 514 of file gltfmeshbuilder.cpp.
References GltfMorphTargetInfo::count, GltfMorphTargetInfo::hasNormals, GltfMorphTargetInfo::hasPositions, and GltfMorphTargetInfo::hasTangents.