How take photos for geometry?

Hello and thank you for your answer.

If I understand correctly, I can achieve the same result using this projector:

and just project a grid like that:

to the object.