From 857fac65b12836130db1ad2bbdc6052bc0d00ae9 Mon Sep 17 00:00:00 2001 From: skyace65 Date: Sat, 5 Feb 2022 10:49:25 -0500 Subject: [PATCH] Add more information on triangulate polygon (cherry picked from commit bcc4d26c48c609bb751a2bd9a88b1aae22caaf5c) --- doc/classes/Geometry.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Geometry.xml b/doc/classes/Geometry.xml index 1fbe4400e6c..c6cf9892135 100644 --- a/doc/classes/Geometry.xml +++ b/doc/classes/Geometry.xml @@ -332,7 +332,7 @@ - Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PoolIntArray] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PoolIntArray] is returned. + Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PoolIntArray] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). Output triangles will always be counter clockwise, and the contour will be flipped if it's clockwise. If the triangulation did not succeed, an empty [PoolIntArray] is returned.