Skip to content

Commit

Permalink
Start work the CosseratRod bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Jul 21, 2024
1 parent 177ac70 commit 17ac94e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace py_bindings {
using Variable = tmpl::type_from<decltype(v)>;
using VariableTag = ::blocks::parameter_t<Variable>;
std::string help_str =
"Refer to documentation of " + typeid(v).name();
std::string("Refer to documentation of ") + typeid(v).name();
context.def_property(
tag_to_method_map(VariableTag{}).c_str(),
+[](type& self) { return ::blocks::get<VariableTag>(self); },
Expand Down
12 changes: 12 additions & 0 deletions backend/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ _PyTags = py.extension_module(
install: true,
subdir: package,
)

_PyCosseratRods = py.extension_module(
'_PyCosseratRods',
sources: [
'Systems/CosseratRods/Python/BindCosseratRod.cpp',
'Systems/CosseratRods/Python/Bindings.cpp',
],
dependencies: py_deps + blaze_deps + brigand_dep,
link_language: 'cpp',
install: true,
subdir: package,
)

0 comments on commit 17ac94e

Please sign in to comment.