Intersection with terrain mesh.

Hi,
I have TerrainMesh instance created from QuantizedMeshTerrainData and 1 viewport (simple point in cartesian coordinates). Could i check visibility of any vertex of TerrainMesh from viewport in other words how to check ray intersection with terrain, where ray origin is viewport and ray direction is one of TerrainMesh vertices?

Did anyone solve same things with visibility on terrain?

I’m not sure how to handle your exact use case, but you might be interested in IntersectionTests.rayTriangle and you’ll also want to check out Globe.pick. Both of them due ray traiangle and rayTerrain intersections. You might also want to look at their implementation to map it to what you are trying to do.