瀏覽代碼

Updated ShapeUtils docs (#22547)

* Updated ShapeUtils doc

Added details about the expected types of triangulateShape() parameters

* Applying suggested changes

Fixed the incorrect `holes` documentation part.

* Update ShapeUtils.html

Co-authored-by: Michael Herzog <[email protected]>
Sebastian W 3 年之前
父節點
當前提交
53151c2319
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/api/en/extras/ShapeUtils.html

+ 2 - 2
docs/api/en/extras/ShapeUtils.html

@@ -39,8 +39,8 @@
 
 
 		<h3>[method:Array triangulateShape]( contour, holes )</h3>
 		<h3>[method:Array triangulateShape]( contour, holes )</h3>
 		<p>
 		<p>
-		contour -- 2D polygon.<br />
-		holes -- array of holes<br /><br />
+		contour -- 2D polygon. An array of [page:Vector2].<br />
+		holes -- An array that holds arrays of [page:Vector2]s. Each array represents a single hole definition.<br /><br />
 
 
 		Used internally by [page:ExtrudeGeometry ExtrudeGeometry] and [page:ShapeGeometry ShapeGeometry] to calculate faces in shapes with holes.
 		Used internally by [page:ExtrudeGeometry ExtrudeGeometry] and [page:ShapeGeometry ShapeGeometry] to calculate faces in shapes with holes.
 		</p>
 		</p>