Skip to content

Commit

Permalink
Exposed FEState::NodePosition to Python
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrossherron committed Jan 30, 2025
1 parent 30753cc commit b6a29ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyLib/PyFBSPost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ void init_FBSPost(py::module& m)
.def_readonly("NodeData", &FEState::m_NODE, py::return_value_policy::reference)
.def_readonly("EdgeData", &FEState::m_EDGE, py::return_value_policy::reference)
.def_readonly("FaceData", &FEState::m_FACE, py::return_value_policy::reference)
.def_readonly("ElemData", &FEState::m_ELEM, py::return_value_policy::reference);
.def_readonly("ElemData", &FEState::m_ELEM, py::return_value_policy::reference)
.def("NodePosition", [](FEState& self, int index) { return to_vec3d(self.NodePosition(index));});

py::class_<NODEDATA>(post, "NODEDATA")
.def("r", [](NODEDATA& self){return to_vec3d(self.m_rt);})
Expand Down

0 comments on commit b6a29ed

Please sign in to comment.