MCPcopy Create free account
hub / github.com/SimVascular/SimVascular / CreatePyPath

Function CreatePyPath

Code/Source/PythonAPI/PathPlanningPath_PyClass.cxx:1118–1132  ·  view source on GitHub ↗

-------------- CreatePyPath -------------- Create a PyPath object. If the path argument is not null then use it for the PyPath object.

Source from the content-addressed store, hash-verified

1116// for the PyPath object.
1117//
1118PyObject *
1119CreatePyPath(PathElement* path)
1120{
1121 //std::cout << "[CreatePyPath] Create Path object ... " << std::endl;
1122 auto pathObj = PyObject_CallObject((PyObject*)&PyPathType, NULL);
1123 auto pyPath = (PyPath*)pathObj;
1124
1125 if (path != nullptr) {
1126 delete pyPath->path;
1127 pyPath->path = path;
1128 }
1129 //std::cout << "[CreatePyPath] pyPath id: " << pyPath->id << std::endl;
1130 //std::cout << "[CreatePyPath] pathObj ref count: " << Py_REFCNT(pathObj) << std::endl;
1131 return pathObj;
1132}
1133

Callers 3

PathSeries_get_pathFunction · 0.85
Path_smoothFunction · 0.85
Dmg_get_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected