名前

CG_3DScaleAroundCenter — ジオメトリを3次元空間で指定した点を中心として拡大縮小します。

概要

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

説明

入力ジオメトリgeomをX,Y,Z軸に沿って個別の係数で、点 (centerX, centerY, centerZ)を中心に拡大縮小します。

Availability: 3.6.0 - SFCGAL >= 2.0.0が必要です

このメソッドにはSFCGALバックエンドが必要です。

この関数は3次元に対応し、Z値を削除しません。

Code
SELECT CG_3DScaleAroundCenter('POINT(2 2 2)', 0.5, 0.5, 0.5, 1, 1, 1);
出力:
POINT Z (1.5 1.5 1.5)
Figure
Geometry figure for visual-cg-3dscalearoundcenter-01

関連情報

CG_Scale, CG_3DScale