Browse Source

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 năm trước cách đây
mục cha
commit
53151c2319
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>
 		<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.
 		</p>