| 373 | } |
| 374 | |
| 375 | void PlacementPy::setMatrix(Py::Object arg) |
| 376 | { |
| 377 | Py::Matrix mat; |
| 378 | if (!mat.accepts(arg.ptr())) { |
| 379 | throw Py::TypeError("Expect type Matrix"); |
| 380 | } |
| 381 | try { |
| 382 | mat = arg; |
| 383 | getPlacementPtr()->fromMatrix(mat); |
| 384 | } |
| 385 | catch (const ValueError& e) { |
| 386 | throw Py::ValueError(e.what()); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | PyObject* PlacementPy::getCustomAttributes(const char* attr) const |
| 391 | { |
nothing calls this directly
no test coverage detected