Name

CG_Scale3DAroundCenter — Scales a geometry in 3D space around a specified center point.

Synopsis

geometry CG_Scale3DAroundCenter(geometry geom, float8 factorX, float8 factorY, float8 factorZ, float8 centerX, float8 centerY, float8 centerZ);

描述

Scales the input geometry geom by different factors along the X, Y, and Z axes, relative to a specified center point (centerX, centerY, centerZ).

Availability: 3.6.0 - requires SFCGAL >= 2.0.0

该方法需要SFCGAL后端。

该函数支持 3d 并且不会丢失 z-index。

示例

SELECT ST_AsText(CG_Scale3DAroundCenter('POINT(2 2 2)', 0.5, 0.5, 0.5, 1, 1, 1));
-- Result: POINT(1.5 1.5 1.5)

相关信息

CG_Scale, CG_Scale3D