ST_3DSphere

更新时间:
复制 MD 格式

Constructs a 3D sphere model and returns it as a scene object.

Syntax

scene ST_3DSphere(float radius, int subdiv);

Parameters

ParameterDescription
radiusThe radius of the sphere.
subdivThe subdivision magnification of the sphere. A larger value indicates a more refined subdivision. Valid values: 1–10.

Return value

Returns a scene object. To convert the result to a readable text string, pass it to ST_AsText.

Example

SELECT ST_AsText(ST_3DSphere(1, 1));

Output (truncated — the full glTF response contains complete accessor and buffer data):

{"type" : "gltf", "content" : {"accessors":[{"bufferView":0,......}]}}

See also

  • ST_AsText — converts a scene object to its text representation