SWIG: add downcasting for more hierarchies
Open
@KrisThielemans is already working on this.
Since May 24, 2026.
- Dominant language
- C++
- Stars
- 160
- Forks
- 113
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Description
A difficulty is that some members return a base class ptr, which cannot be downcasted in python. Example
input=recon.get_input_data()
Then input is of type ExamData and there's no way to get at members of a ProjData (or whatever it is).
This might be possible as mentioned for instance at https://github.com/tpaviot/pythonocc-generator/issues/28
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.