8#include "rbf/biharmonic2d.h"
9#include "rbf/biharmonic3d.h"
13 inline std::unique_ptr<rsmesh::rbf::rbf_base> make_rbf(
const std::string& rbf_type,
14 const std::vector<double>& params) {
15 if(rbf_type ==
"biharmonic2d") {
16 return std::make_unique<rsmesh::rbf::biharmonic2d>(params);
18 if(rbf_type ==
"biharmonic3d") {
19 return std::make_unique<rsmesh::rbf::biharmonic3d>(params);
22 throw std::invalid_argument(
"Unknown RBF type: " + rbf_type);
通用工具函数的命名空间,包括一个detail子命名空间