| 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 | { |
nothing calls this directly
no test coverage detected