MCPcopy Create free account
hub / github.com/bgrimstad/splinter / get_builder

Function get_builder

src/cinterface/utilities.cpp:58–68  ·  view source on GitHub ↗

Check for existence of bspline_builder_ptr, then cast splinter_obj_ptr to a BSpline::Builder * */

Source from the content-addressed store, hash-verified

56
57/* Check for existence of bspline_builder_ptr, then cast splinter_obj_ptr to a BSpline::Builder * */
58BSpline::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.

Calls 1

set_error_stringFunction · 0.85

Tested by

no test coverage detected