Maya API: How to use MFnMesh::allIntersections()?


Hi! I’ve been trying to use MFnMesh::allIntersections() in my code but I can’t understand how to correctly write it. I’m new to Maya API so I don’t know too much yet. Could someone please bring a small example with allIntersections() in it , so I can finally see how is it used : )

Thanks in advance