Merge pull request #57664 from skyace65/TriangulateInfo
Add more information on triangulate polygon
This commit is contained in:
commit
002ab10608
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue