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

Function forEachPrimitiveInMeshObject

CesiumGltf/src/Model.cpp:429–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427namespace {
428template <typename TCallback>
429void forEachPrimitiveInMeshObject(
430 const glm::dmat4x4& transform,
431 const Model& model,
432 const Node& node,
433 const Mesh& mesh,
434 TCallback& callback) {
435 for (const MeshPrimitive& primitive : mesh.primitives) {
436 callback(model, node, mesh, primitive, transform);
437 }
438}
439
440std::optional<glm::dmat4x4> getNodeTransform(const CesiumGltf::Node& node) {
441 if (!node.matrix.empty() && node.matrix.size() < 16) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected