P
P
Philip Bondarev2020-08-17 20:21:19
Python
Philip Bondarev, 2020-08-17 20:21:19

How to describe in SWIG a vector of pointers passed by reference as an argument?

There is a method that takes as an argument

std::vector<std::shared_ptr<TopoDS_Shape>> &myShapes
(can be converted to raw pointers, this is not critical). How can I properly describe this type in an interface file to work with it in Python ? I would like it to be possible to pass an empty list from the Python side and fill it in the plus method.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question