Check for existence of bspline_builder_ptr, then cast splinter_obj_ptr to a BSpline::Builder * */
| 56 | |
| 57 | /* Check for existence of bspline_builder_ptr, then cast splinter_obj_ptr to a BSpline::Builder * */ |
| 58 | BSpline::Builder *get_builder(splinter_obj_ptr bspline_builder_ptr) |
| 59 | { |
| 60 | if (bspline_builders.count(bspline_builder_ptr) > 0) |
| 61 | { |
| 62 | return static_cast<BSpline::Builder *>(bspline_builder_ptr); |
| 63 | } |
| 64 | |
| 65 | set_error_string("Invalid reference to BSpline::Builder: Maybe it has been deleted?"); |
| 66 | |
| 67 | return nullptr; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Convert from column major to row major with point_dim number of columns. |
no test coverage detected