소스 검색

Add more information on triangulate polygon

(cherry picked from commit bcc4d26c48c609bb751a2bd9a88b1aae22caaf5c)
skyace65 3 년 전
부모
커밋
310adf533d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      doc/classes/Geometry.xml

+ 1 - 1
doc/classes/Geometry.xml

@@ -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>