| 455 | } |
| 456 | |
| 457 | Py::Dict MaterialPy::getLegacyProperties() const |
| 458 | { |
| 459 | Py::Dict dict; |
| 460 | |
| 461 | auto legacy = getMaterialPtr()->getLegacyProperties(); |
| 462 | for (auto& it : legacy) { |
| 463 | auto key = it.first; |
| 464 | auto value = it.second; |
| 465 | |
| 466 | if (!value.isEmpty()) { |
| 467 | dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString())); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | return dict; |
| 472 | } |
| 473 | |
| 474 | PyObject* MaterialPy::getPhysicalValue(PyObject* args) |
| 475 | { |
no test coverage detected