Skip to content

Commit

Permalink
BufferGeometryUtils: Add docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Feb 27, 2018
1 parent 788c7ee commit fbbda22
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/examples/BufferGeometryUtils.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>

<div class="desc">
A class containing utility functions for [page:BufferGeometry BufferGeometry] instances.<br /><br />
</div>


<h2>Methods</h2>

<h3>[method:null computeTangents]( geometry )</h3>
<div>
geometry -- A [page:BufferGeometry BufferGeometry] instance, which must have index, position, normal, and uv attributes.<br /><br />

Calculates and adds tangent attribute to a geometry.<br /><br />

</div>

<h3>[method:BufferGeometry mergeBufferGeometries]( geometries )</h3>
<div>
geometries -- Array of [page:BufferGeometry BufferGeometry] instances.<br /><br />

Merges a set of geometries into a single instance. All geometries must have compatible attributes.
If merge does not succeed, the method returns null.<br /><br />

</div>

<h3>[method:BufferAttribute mergeBufferAttributes]( attributes )</h3>
<div>
attributes -- Array of [page:BufferAttribute BufferAttribute] instances.<br /><br />

Merges a set of attributes into a single instance. All attributes must have compatible properties
and types, and [page:InterleavedBufferAttribute InterleavedBufferAttributes] are not supported. If merge does not succeed, the method
returns null.

</div>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/BufferGeometryUtils.js examples/js/BufferGeometryUtils.js]
</body>
</html>
1 change: 1 addition & 0 deletions docs/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ var list = {
},

"Utils": {
"BufferGeometryUtils": "examples/BufferGeometryUtils",
"SceneUtils": "examples/utils/SceneUtils"
}

Expand Down

0 comments on commit fbbda22

Please sign in to comment.