MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / forEachPrimitiveInScene

Method forEachPrimitiveInScene

CesiumGltf/src/Model.cpp:631–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void Model::forEachPrimitiveInScene(
632 int32_t sceneID,
633 std::function<ForEachPrimitiveInSceneCallback>&& callback) {
634 return const_cast<const Model*>(this)->forEachPrimitiveInScene(
635 sceneID,
636 [&callback](
637 const Model& gltf,
638 const Node& node,
639 const Mesh& mesh,
640 const MeshPrimitive& primitive,
641 const glm::dmat4& transform) {
642 callback(
643 const_cast<Model&>(gltf),
644 const_cast<Node&>(node),
645 const_cast<Mesh&>(mesh),
646 const_cast<MeshPrimitive&>(primitive),
647 transform);
648 });
649}
650
651void Model::forEachPrimitiveInScene(
652 int32_t sceneID,

Callers 9

vectorizeModelFunction · 0.80
getVertexAttributeRangeFunction · 0.80
computeBoundingRegionMethod · 0.80
intersectRayGltfModelMethod · 0.80
TestModel.cppFile · 0.80
instantiateGltfInstancesFunction · 0.80

Calls 4

NodeClass · 0.50

Tested by 1

getVertexAttributeRangeFunction · 0.64