Name

CG_ConstrainedDelaunayTriangles — 返回围绕给定输入几何体的约束 Delaunay 三角剖分。

Synopsis

geometry CG_ConstrainedDelaunayTriangles(geometry g1);

描述

[Warning]

CG_ConstrainedDelaunayTriangles is deprecated as of 3.5.0. Use CG_ConstrainedDelaunayTriangles instead.

返回围绕输入几何体顶点的约束 Delaunay 三角剖分。 输出是 TIN。

该方法需要SFCGAL后端。

可用性:3.0.0

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

示例

CG_ConstrainedDelaunayTriangles of 2 polygons

select CG_ConstrainedDelaunayTriangles(
                                        ST_Union(
                                        'POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))'::geometry,
                                        ST_Buffer('POINT(110 170)'::geometry, 20)
                                        )
                                        );
                                    

ST_DelaunayTriangles 2 个多边形。 三角形边与多边形边界相交。

select ST_DelaunayTriangles(
                                        ST_Union(
                                        'POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))'::geometry,
                                        ST_Buffer('POINT(110 170)'::geometry, 20)
                                        )
                                        );