Re: [brlcad-users] Python Wrappings for Librt Library

2021-12-20 Thread Daniel Roßberg
Hello Tuğçe, Did you assigned memory to the resource? rt_init_resource() expects a pointer to valid memory. In general, it isn't easy to write a Python wrapper for BRL-CAD. I recommend to program it in C first. If this works, you can try to move your implementation to Python. Or, you could write

[brlcad-users] Python Wrappings for Librt Library

2021-12-17 Thread Tuğçe Sena Koyuncu
Hi We are working on a project to use ray tracing functionality of BRL CAD with python. How can we achieve this? By using the ctypes module, we loaded a dll library of BRL CAD and in particular used librt.c. By ctypes, we wrapped the functions rt_dirbuilt(), rt_gettree(), rt_prep and finally rt_sh