Constructs a 3D sphere model and returns it as a scene object.
Syntax
scene ST_3DSphere(float radius, int subdiv);Parameters
| Parameter | Description |
|---|---|
| radius | The radius of the sphere. |
| subdiv | The 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 asceneobject to its text representation
该文章对您有帮助吗?