Skip to content

Commit

Permalink
Add more information on triangulate polygon
Browse files Browse the repository at this point in the history
(cherry picked from commit bcc4d26)
  • Loading branch information
skyace65 authored and akien-mga committed Feb 24, 2022
1 parent ae9fa90 commit 310adf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/Geometry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 310adf5

Please sign in to comment.