UCL / UCL/STIR

SWIG: add downcasting for more hierarchies

Open
#284 7 comments 0 reactions 1 assignee View on GitHub

@KrisThielemans is already working on this.

Since May 24, 2026.

  • #709 by @robbietuk — closed without merging
  • #1712 by @KrisThielemans — merged
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.