Subdivide surface based on intersection I have a question. The situation is as follows:

So there is a sphere and a prism going straight through the sphere.
Now I would like to:

Add vertices and edges to the sphere mesh along the line of
intersection
Select all the surface-faces within the region of
intersection to work with them e.g. apply a specific material

I feel like there has to be a way to do it without scripting, but I really don't know how...
Thanks for any help in advance:D
Actually I recalled another option called Knife Project.
In Edit mode of the cube remove the top face like this:

In Object mode select cube first and sphere second.

Then go to edit mode. Select all. Make top orthographic view and use Knife project operation from Mesh menu.

Check Cut trough box

Now you can delete your cube and when you go to edit mode with your sphere you can see faces were intersected. So you can select them separately and assign another material.

Hope it helps!