Draw on a 3D Surface

Hi,

I am currently building an application in VR that should allow drawing on a 3D surface (e.g. Skull model). I have used the "Draw on a Surface Feature’ in Slicer. I would like to know how it is precisely done. If you could share any references that would be very helpful.

Thanks


I might have not been able to explain what I meant exactly in my post. Here I attached a video. I just wanted to know how the erase or similar kind of functions get activated when the cursor is on the model and how to define such parameters.

Thanks

These are the general instructions for finding the implementation of various features:

https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-find-a-python-function-for-any-slicer-features