How to judge the frontest triangles?

There are many triangles in the scene. I want to get triangles which i can see in the view position.

The triangle which some part of it is occluded is not the one I want to get.

Thank you!

Don’t cross-post. (Re this duplicate post)