diff options
author | skyace65 <trekie96@hotmail.com> | 2022-02-05 10:49:25 -0500 |
---|---|---|
committer | skyace65 <trekie96@hotmail.com> | 2022-02-05 10:49:25 -0500 |
commit | bcc4d26c48c609bb751a2bd9a88b1aae22caaf5c (patch) | |
tree | 2446f427e202e886b90056c360bb2f0ab95c3974 | |
parent | feb34dfb2e4ed748f9ea672e24cff69d1bfe1cd1 (diff) |
Add more information on triangulate polygon
-rw-r--r-- | doc/classes/Geometry2D.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Geometry2D.xml b/doc/classes/Geometry2D.xml index 157124cded..cc1714911b 100644 --- a/doc/classes/Geometry2D.xml +++ b/doc/classes/Geometry2D.xml @@ -209,7 +209,7 @@ <return type="PackedInt32Array" /> <argument index="0" name="polygon" type="PackedVector2Array" /> <description> - Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PackedInt32Array] 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 [PackedInt32Array] is returned. + Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PackedInt32Array] 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 [PackedInt32Array] is returned. </description> </method> </methods> |