1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Add more information on triangulate polygon

(cherry picked from commit bcc4d26c48)
This commit is contained in:
skyace65
2022-02-05 10:49:25 -05:00
committed by Rémi Verschelde
parent 2f95efcaaf
commit 857fac65b1

View File

@@ -332,7 +332,7 @@
<return type="PoolIntArray" />
<argument index="0" name="polygon" type="PoolVector2Array" />
<description>
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.
</description>
</method>
</methods>