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