From 310adf533deb52ca72d17bdd6025d03b53d5e3bd 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 74c363ef1d9f..d53bbfadc76f 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.