|
@@ -170,20 +170,12 @@
|
|
|
|
|
|
<p>[page:EventDispatcher EventDispatcher] methods are available on this class.</p>
|
|
<p>[page:EventDispatcher EventDispatcher] methods are available on this class.</p>
|
|
|
|
|
|
- <h3>[method:this setAttribute]( [param:String name], [param:BufferAttribute attribute] )</h3>
|
|
|
|
- <p>
|
|
|
|
- Sets an attribute to this geometry. Use this rather than the attributes property,
|
|
|
|
- because an internal hashmap of [page:.attributes] is maintained to speed up iterating over
|
|
|
|
- attributes.
|
|
|
|
- </p>
|
|
|
|
-
|
|
|
|
<h3>[method:undefined addGroup]( [param:Integer start], [param:Integer count], [param:Integer materialIndex] )</h3>
|
|
<h3>[method:undefined addGroup]( [param:Integer start], [param:Integer count], [param:Integer materialIndex] )</h3>
|
|
<p>
|
|
<p>
|
|
Adds a group to this geometry; see the [page:BufferGeometry.groups groups]
|
|
Adds a group to this geometry; see the [page:BufferGeometry.groups groups]
|
|
property for details.
|
|
property for details.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
-
|
|
|
|
<h3>[method:this applyMatrix4]( [param:Matrix4 matrix] )</h3>
|
|
<h3>[method:this applyMatrix4]( [param:Matrix4 matrix] )</h3>
|
|
<p>Applies the matrix transform to the geometry.</p>
|
|
<p>Applies the matrix transform to the geometry.</p>
|
|
|
|
|
|
@@ -193,15 +185,12 @@
|
|
<h3>[method:this center] ()</h3>
|
|
<h3>[method:this center] ()</h3>
|
|
<p>Center the geometry based on the bounding box.</p>
|
|
<p>Center the geometry based on the bounding box.</p>
|
|
|
|
|
|
- <h3>[method:BufferGeometry clone]()</h3>
|
|
|
|
- <p>Creates a clone of this BufferGeometry.</p>
|
|
|
|
-
|
|
|
|
- <h3>[method:this copy]( [param:BufferGeometry bufferGeometry] )</h3>
|
|
|
|
- <p>Copies another BufferGeometry to this BufferGeometry.</p>
|
|
|
|
-
|
|
|
|
<h3>[method:undefined clearGroups]( )</h3>
|
|
<h3>[method:undefined clearGroups]( )</h3>
|
|
<p>Clears all groups.</p>
|
|
<p>Clears all groups.</p>
|
|
|
|
|
|
|
|
+ <h3>[method:BufferGeometry clone]()</h3>
|
|
|
|
+ <p>Creates a clone of this BufferGeometry.</p>
|
|
|
|
+
|
|
<h3>[method:undefined computeBoundingBox]()</h3>
|
|
<h3>[method:undefined computeBoundingBox]()</h3>
|
|
<p>
|
|
<p>
|
|
Computes bounding box of the geometry, updating [page:.boundingBox] attribute.<br />
|
|
Computes bounding box of the geometry, updating [page:.boundingBox] attribute.<br />
|
|
@@ -224,6 +213,12 @@
|
|
<h3>[method:undefined computeVertexNormals]()</h3>
|
|
<h3>[method:undefined computeVertexNormals]()</h3>
|
|
<p>Computes vertex normals by averaging face normals.</p>
|
|
<p>Computes vertex normals by averaging face normals.</p>
|
|
|
|
|
|
|
|
+ <h3>[method:this copy]( [param:BufferGeometry bufferGeometry] )</h3>
|
|
|
|
+ <p>Copies another BufferGeometry to this BufferGeometry.</p>
|
|
|
|
+
|
|
|
|
+ <h3>[method:BufferAttribute deleteAttribute]( [param:String name] )</h3>
|
|
|
|
+ <p>Deletes the [page:BufferAttribute attribute] with the specified name.</p>
|
|
|
|
+
|
|
<h3>[method:undefined dispose]()</h3>
|
|
<h3>[method:undefined dispose]()</h3>
|
|
<p>
|
|
<p>
|
|
Disposes the object from memory. <br />
|
|
Disposes the object from memory. <br />
|
|
@@ -253,9 +248,6 @@
|
|
This will correct lighting on the geometry surfaces.
|
|
This will correct lighting on the geometry surfaces.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <h3>[method:BufferAttribute deleteAttribute]( [param:String name] )</h3>
|
|
|
|
- <p>Deletes the [page:BufferAttribute attribute] with the specified name.</p>
|
|
|
|
-
|
|
|
|
<h3>[method:this rotateX] ( [param:Float radians] )</h3>
|
|
<h3>[method:this rotateX] ( [param:Float radians] )</h3>
|
|
<p>
|
|
<p>
|
|
Rotate the geometry about the X axis. This is typically done as a one time operation, and not during a loop.
|
|
Rotate the geometry about the X axis. This is typically done as a one time operation, and not during a loop.
|
|
@@ -280,8 +272,12 @@
|
|
Use [page:Object3D.scale] for typical real-time mesh scaling.
|
|
Use [page:Object3D.scale] for typical real-time mesh scaling.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <h3>[method:this setIndex] ( [param:BufferAttribute index] )</h3>
|
|
|
|
- <p>Set the [page:.index] buffer.</p>
|
|
|
|
|
|
+ <h3>[method:this setAttribute]( [param:String name], [param:BufferAttribute attribute] )</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Sets an attribute to this geometry. Use this rather than the attributes property,
|
|
|
|
+ because an internal hashmap of [page:.attributes] is maintained to speed up iterating over
|
|
|
|
+ attributes.
|
|
|
|
+ </p>
|
|
|
|
|
|
<h3>[method:undefined setDrawRange] ( [param:Integer start], [param:Integer count] )</h3>
|
|
<h3>[method:undefined setDrawRange] ( [param:Integer start], [param:Integer count] )</h3>
|
|
<p>Set the [page:.drawRange] property. For non-indexed BufferGeometry, count is the number of vertices to render.
|
|
<p>Set the [page:.drawRange] property. For non-indexed BufferGeometry, count is the number of vertices to render.
|
|
@@ -290,6 +286,9 @@
|
|
<h3>[method:this setFromPoints] ( [param:Array points] )</h3>
|
|
<h3>[method:this setFromPoints] ( [param:Array points] )</h3>
|
|
<p>Sets the attributes for this BufferGeometry from an array of points.</p>
|
|
<p>Sets the attributes for this BufferGeometry from an array of points.</p>
|
|
|
|
|
|
|
|
+ <h3>[method:this setIndex] ( [param:BufferAttribute index] )</h3>
|
|
|
|
+ <p>Set the [page:.index] buffer.</p>
|
|
|
|
+
|
|
<h3>[method:Object toJSON]()</h3>
|
|
<h3>[method:Object toJSON]()</h3>
|
|
<p>Convert the buffer geometry to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].</p>
|
|
<p>Convert the buffer geometry to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].</p>
|
|
|
|
|