Calculates the visible surface from a viewpoint in a scene.
Syntax
meshgeom ST_ComputeViewShedSurface(scene sc, cstring viewpoint);Return value
Returns a meshgeom object.
Parameters
Parameter | Description |
sc | The scene object. |
viewpoint | The viewpoint information. |
Description
This function calculates the visible surface based on a scene object and a viewpoint. The visible surface consists of the visible triangular patches from the scene object. The viewpoint information must be provided in the same JSON format that is used by the ST_ComputeFrustum function. The following figures show an example:
Scene object

Visible surface

Example
SELECT ST_NumPatches(ST_ComputeViewShedSurface(scene, '{"x" : 2938, "y" : 750, "z" : 90, "h" : 1.8, "azimuth" : 90, "pitch" : -35, "horizontalFov" : 90, "verticalFov" : 60, "distance" : 600, "depthMapSize" : 128}')) from t;
--------
10451
该文章对您有帮助吗?