39 boost::python::list values,
42 int gLength = py::len(values);
43 std::vector<std::vector<double> > valuesVec(gLength);
44 for (
int i = 0; i < gLength; ++i) {
45 int lineLength = py::len(values[i]);
46 valuesVec[i] = std::vector<double>(lineLength);
47 for (
int j = 0; j < lineLength; ++j) {
48 valuesVec[i][j] = py::extract<double>(values[i][j]);
56 polyPatchOrder).
solve();
63 if (py::len(point) != pointDim) {
66 std::vector<double> pointVec(pointDim);
67 for (
int i = 0; i < pointDim; ++i) {
68 pointVec[i] = py::extract<double>(point[i]);
70 std::vector<double> valueVec(valueDim);
71 patch->
function(&pointVec[0], &valueVec[0]);
72 py::list value = py::list();
73 for (
int i = 0; i < valueDim; ++i) {
74 value.append(valueVec[i]);