Searched refs:primitives (Results 1 - 4 of 4) sorted by relevance
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_loader.cpp | 1502 bool ParsePrimitive(LoadResult& loadResult, vector<MeshPrimitive>& primitives, const json::value& jsonData) 1557 primitives.push_back(move(meshPrimitive)); 1562 bool MeshExtras(LoadResult& loadResult, const json::value& jsonData, array_view<MeshPrimitive> primitives) 1566 [&primitives, &index](LoadResult& loadResult, const json::value& targetName) -> bool { 1573 for (auto& primitive : primitives) { 1594 vector<MeshPrimitive> primitives; 1595 if (auto const primitivesJson = jsonData.find("primitives"); primitivesJson) { 1597 loadResult, *primitivesJson, [&primitives](LoadResult& loadResult, const json::value& item) -> bool { 1598 return ParsePrimitive(loadResult, primitives, item); 1617 for (size_t i = 1; i < primitives [all...] |
H A D | gltf2_importer.cpp | 783 void ProcessPrimitives(GatherMeshDataResult& result, uint32_t flags, array_view<const GLTF2::MeshPrimitive> primitives) in ProcessPrimitives() argument 786 for (size_t primitiveIndex = 0, count = primitives.size(); primitiveIndex < count; ++primitiveIndex) { in ProcessPrimitives() 787 const auto& primitive = primitives[primitiveIndex]; in ProcessPrimitives() 875 result.meshBuilder->Initialize(vertexInputDeclaration, mesh.primitives.size()); in GatherMeshData() 878 for (const auto& primitive : mesh.primitives) { in GatherMeshData() 887 ProcessPrimitives(result, flags, mesh.primitives); in GatherMeshData() 2064 if (!node->mesh->primitives.empty()) { in CreateMorphComponents() 2071 const size_t weightCount = node->mesh->primitives[0].targets.size(); in CreateMorphComponents() 2072 // Assert that all primitives have the same targets. (the spec is a bit confusing here or i just in CreateMorphComponents() 2074 for (const auto& primitive : node->mesh->primitives) { in CreateMorphComponents() [all...] |
H A D | gltf2_data_structures.h | 596 // When this is not defined, the primitives should be rendered 605 // For triangle primitives, the front face has 615 // The type of primitives to render. All valid values correspond to WebGL enums. 628 // [required field], primitives 629 BASE_NS::vector<MeshPrimitive> primitives; member
|
H A D | gltf2_exporter.cpp | 938 auto const& originalPrimitives = originalGltf->meshes[meshIndex]->primitives; in ExportGltfMeshes() 940 std::back_inserter(exportMesh->primitives), in ExportGltfMeshes() 1853 for (auto const& primitive : mesh->primitives) { in ExportMeshes() 1856 jsonMesh["primitives"] = move(jsonPrimitives); in ExportMeshes()
|
Completed in 12 milliseconds