MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getMeshVerticesAndIndicesPython

Function getMeshVerticesAndIndicesPython

Source/Falcor/Scene/Scene.cpp:4246–4259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4244 }
4245
4246 inline void getMeshVerticesAndIndicesPython(Scene& scene, MeshID meshID, const pybind11::dict& dict)
4247 {
4248 std::map<std::string, ref<Buffer>> buffers;
4249 for (auto item : dict)
4250 {
4251 std::string name = item.first.cast<std::string>();
4252 ref<Buffer> buffer = item.second.cast<ref<Buffer>>();
4253 buffers[name] = buffer;
4254 }
4255 scene.getMeshVerticesAndIndices(meshID, buffers);
4256#if FALCOR_HAS_CUDA
4257 scene.getDevice()->getRenderContext()->waitForFalcor();
4258#endif
4259 }
4260
4261 inline void setMeshVerticesPython(Scene& scene, MeshID meshID, const pybind11::dict& dict)
4262 {

Callers

nothing calls this directly

Calls 3

waitForFalcorMethod · 0.45
getDeviceMethod · 0.45

Tested by

no test coverage detected