View factors : create a differential surface from CAD file

Hi,
Thanks a lot for the help. Somehow executing the script above wouldn’t work : I’ve got an error “rfluxmtx: too many arguments!” accompanied by a runtime error. I’ve haven’t been able to find a solution by myself so I would be grateful if you have an idea of why this is and what to do.
I saw this topic from 2018 that said the number of polygons in rfluxmtx are limited but the limit can be increased, but after reading rfluxmtx source code, I see this has been increased as part of the standard radiance distribution, thus this mustn’t be the origin of the issue.

The exact message I get trying to execute your script is

$ python test.py 
/home/pathTo/pyradiance/bin/rfluxmtx: too many arguments!
Traceback (most recent call last):
  File "/home/pathTo/pyradiance/anci.py", line 22, in wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/home/pathTo/pyradiance/util.py", line 702, in rfluxmtx
    return sp.run(cmd, check=True, stdout=sp.PIPE, input=rays).stdout
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/pathTo/pyradiance/bin/rfluxmtx', '-c', '10000', '-n', '1', '-w', '-ffd', '/tmp/tmpwme95jxu/surface', '/tmp/tmpwme95jxu/receiver', '/tmp/tmpwme95jxu/scene']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pathToDoc/test.py", line 5, in <module>
    view_factors = fr.surfaces_view_factor(cavity_primitives, shield_primitives)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pathTo/frads/matrix.py", line 819, in surfaces_view_factor
    mat.generate(params=["-c", f"{ray_count}"])
  File "/home/pathTo/frads/matrix.py", line 400, in generate
    matrix = pr.rfluxmtx(
             ^^^^^^^^^^^^
  File "/home/pathTo/pyradiance/anci.py", line 25, in wrapper
    raise RuntimeError(
RuntimeError: An error occurred with exit code 1: