|
@@ -99,7 +99,7 @@
|
|
|
|
|
|
<h2>Properties</h2>
|
|
<h2>Properties</h2>
|
|
|
|
|
|
- <h3>[property:Hashmap attributes]</h3>
|
|
|
|
|
|
+ <h3>[property:Object attributes]</h3>
|
|
<div>
|
|
<div>
|
|
This hashmap has as id the name of the attribute to be set and as value the [page:BufferAttribute buffer] to set it to.
|
|
This hashmap has as id the name of the attribute to be set and as value the [page:BufferAttribute buffer] to set it to.
|
|
Rather than accessing this property directly, use [page:.addAttribute] and [page:.getAttribute] to access attributes of this geometry.
|
|
Rather than accessing this property directly, use [page:.addAttribute] and [page:.getAttribute] to access attributes of this geometry.
|
|
@@ -194,21 +194,21 @@
|
|
|
|
|
|
<h3>[page:EventDispatcher EventDispatcher] methods are available on this class.</h3>
|
|
<h3>[page:EventDispatcher EventDispatcher] methods are available on this class.</h3>
|
|
|
|
|
|
- <h3>[property:null addAttribute]( [page:String name], [page:BufferAttribute attribute] )</h3>
|
|
|
|
|
|
+ <h3>[method:null addAttribute]( [param:String name], [param:BufferAttribute attribute] )</h3>
|
|
<div>
|
|
<div>
|
|
Adds an attribute to this geometry. Use this rather than the attributes property,
|
|
Adds 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
|
|
because an internal hashmap of [page:.attributes] is maintained to speed up iterating over
|
|
attributes.
|
|
attributes.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:null addGroup]( [page:Integer start], [page:Integer count], [page:Integer materialIndex] )</h3>
|
|
|
|
|
|
+ <h3>[method:null addGroup]( [param:Integer start], [param:Integer count], [param:Integer materialIndex] )</h3>
|
|
<div>
|
|
<div>
|
|
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.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
- <h3>[method:null applyMatrix]( [page:Matrix4 matrix] )</h3>
|
|
|
|
|
|
+ <h3>[method:null applyMatrix]( [param:Matrix4 matrix] )</h3>
|
|
<div>Bakes matrix transform directly into vertex coordinates.</div>
|
|
<div>Bakes matrix transform directly into vertex coordinates.</div>
|
|
|
|
|
|
<h3>[method:null center] ()</h3>
|
|
<h3>[method:null center] ()</h3>
|
|
@@ -217,7 +217,7 @@
|
|
<h3>[method:BufferGeometry clone]()</h3>
|
|
<h3>[method:BufferGeometry clone]()</h3>
|
|
<div>Creates a clone of this BufferGeometry.</div>
|
|
<div>Creates a clone of this BufferGeometry.</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry copy]( [page:BufferGeometry bufferGeometry] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry copy]( [param:BufferGeometry bufferGeometry] )</h3>
|
|
<div>Copies another BufferGeometry to this BufferGeometry.</div>
|
|
<div>Copies another BufferGeometry to this BufferGeometry.</div>
|
|
|
|
|
|
<h3>[method:null clearGroups]( )</h3>
|
|
<h3>[method:null clearGroups]( )</h3>
|
|
@@ -225,7 +225,7 @@
|
|
|
|
|
|
<h3>[method:null computeBoundingBox]()</h3>
|
|
<h3>[method:null computeBoundingBox]()</h3>
|
|
<div>
|
|
<div>
|
|
- Computes bounding box of the geometry, updating [page:.boundingBox] attribute.<br />
|
|
|
|
|
|
+ Computes bounding box of the geometry, updating [param:.boundingBox] attribute.<br />
|
|
Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are *null*.
|
|
Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are *null*.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -244,7 +244,7 @@
|
|
You need to call this when you want the bufferGeometry removed while the application is running.
|
|
You need to call this when you want the bufferGeometry removed while the application is running.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry fromDirectGeometry]( [page:Geometry] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry fromDirectGeometry]( [param:Geometry] )</h3>
|
|
<div>
|
|
<div>
|
|
Populates this BufferGeometry with data from a [page:DirectGeometry] object.<br /><br />
|
|
Populates this BufferGeometry with data from a [page:DirectGeometry] object.<br /><br />
|
|
|
|
|
|
@@ -252,16 +252,16 @@
|
|
and BufferGeometry.
|
|
and BufferGeometry.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry fromGeometry]( [page:Geometry] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry fromGeometry]( [param:Geometry] )</h3>
|
|
<div>Populates this BufferGeometry with data from a [page:Geometry] object.</div>
|
|
<div>Populates this BufferGeometry with data from a [page:Geometry] object.</div>
|
|
|
|
|
|
- <h3>[method:BufferAttribute getAttribute]( [page:String name] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferAttribute getAttribute]( [param:String name] )</h3>
|
|
<div>Returns the [page:BufferAttribute attribute] with the specified name.</div>
|
|
<div>Returns the [page:BufferAttribute attribute] with the specified name.</div>
|
|
|
|
|
|
<h3>[method:BufferAttribute getIndex] ()</h3>
|
|
<h3>[method:BufferAttribute getIndex] ()</h3>
|
|
<div>Return the [page:.index] buffer.</div>
|
|
<div>Return the [page:.index] buffer.</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry lookAt] ( [page:Vector3 vector] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry lookAt] ( [param:Vector3 vector] )</h3>
|
|
<div>
|
|
<div>
|
|
vector - A world vector to look at.<br /><br />
|
|
vector - A world vector to look at.<br /><br />
|
|
|
|
|
|
@@ -269,7 +269,7 @@
|
|
Use [page:Object3D.lookAt] for typical real-time mesh usage.
|
|
Use [page:Object3D.lookAt] for typical real-time mesh usage.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:null merge]( [page:BufferGeometry bufferGeometry], [page:Integer offset] )</h3>
|
|
|
|
|
|
+ <h3>[method:null merge]( [param:BufferGeometry bufferGeometry], [param:Integer offset] )</h3>
|
|
<div>Merge in another BufferGeometry with an optional offset of where to start merging in.</div>
|
|
<div>Merge in another BufferGeometry with an optional offset of where to start merging in.</div>
|
|
|
|
|
|
<h3>[method:null normalizeNormals]()</h3>
|
|
<h3>[method:null normalizeNormals]()</h3>
|
|
@@ -278,43 +278,43 @@
|
|
This will correct lighting on the geometry surfaces.
|
|
This will correct lighting on the geometry surfaces.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferAttribute removeAttribute]( [page:String name] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferAttribute removeAttribute]( [param:String name] )</h3>
|
|
<div>Removes the [page:BufferAttribute attribute] with the specified name.</div>
|
|
<div>Removes the [page:BufferAttribute attribute] with the specified name.</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry rotateX] ( [page:Float radians] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry rotateX] ( [param:Float radians] )</h3>
|
|
<div>
|
|
<div>
|
|
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.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry rotateY] ( [page:Float radians] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry rotateY] ( [param:Float radians] )</h3>
|
|
<div>
|
|
<div>
|
|
Rotate the geometry about the Y axis. This is typically done as a one time operation, and not during a loop.
|
|
Rotate the geometry about the Y axis. This is typically done as a one time operation, and not during a loop.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry rotateZ] ( [page:Float radians] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry rotateZ] ( [param:Float radians] )</h3>
|
|
<div>
|
|
<div>
|
|
Rotate the geometry about the Z axis. This is typically done as a one time operation, and not during a loop.
|
|
Rotate the geometry about the Z axis. This is typically done as a one time operation, and not during a loop.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
Use [page:Object3D.rotation] for typical real-time mesh rotation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry scale] ( [page:Float x], [page:Float y], [page:Float z] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry scale] ( [param:Float x], [param:Float y], [param:Float z] )</h3>
|
|
<div>
|
|
<div>
|
|
Scale the geometry data. This is typically done as a one time operation, and not during a loop.
|
|
Scale the geometry data. This is typically done as a one time operation, and not during a loop.
|
|
Use [page:Object3D.scale] for typical real-time mesh scaling.
|
|
Use [page:Object3D.scale] for typical real-time mesh scaling.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:null setIndex] ( [page:BufferAttribute index] )</h3>
|
|
|
|
|
|
+ <h3>[method:null setIndex] ( [param:BufferAttribute index] )</h3>
|
|
<div>Set the [page:.index] buffer.</div>
|
|
<div>Set the [page:.index] buffer.</div>
|
|
|
|
|
|
- <h3>[method:null setDrawRange] ( [page:Integer start], [page:Integer count] )</h3>
|
|
|
|
|
|
+ <h3>[method:null setDrawRange] ( [param:Integer start], [param:Integer count] )</h3>
|
|
<div>Set the [page:.drawRange] buffer. See that property for details.</div>
|
|
<div>Set the [page:.drawRange] buffer. See that property for details.</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry setFromObject] ( [page:Object3D object] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry setFromObject] ( [param:Object3D object] )</h3>
|
|
<div>Sets the attributes for this BufferGeometry from an [page:Object3D].</div>
|
|
<div>Sets the attributes for this BufferGeometry from an [page:Object3D].</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry setFromPoints] ( [page:Array points] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry setFromPoints] ( [param:Array points] )</h3>
|
|
<div>Sets the attributes for this BufferGeometry from an array of points.</div>
|
|
<div>Sets the attributes for this BufferGeometry from an array of points.</div>
|
|
|
|
|
|
<h3>[method:Object toJSON]()</h3>
|
|
<h3>[method:Object toJSON]()</h3>
|
|
@@ -323,13 +323,13 @@
|
|
<h3>[method:BufferGeometry toNonIndexed]()</h3>
|
|
<h3>[method:BufferGeometry toNonIndexed]()</h3>
|
|
<div>Return a non-index version of an indexed BufferGeometry.</div>
|
|
<div>Return a non-index version of an indexed BufferGeometry.</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry translate] ( [page:Float x], [page:Float y], [page:Float z] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry translate] ( [param:Float x], [param:Float y], [param:Float z] )</h3>
|
|
<div>
|
|
<div>
|
|
Translate the geometry. This is typically done as a one time operation, and not during a loop.
|
|
Translate the geometry. This is typically done as a one time operation, and not during a loop.
|
|
Use [page:Object3D.position] for typical real-time mesh translation.
|
|
Use [page:Object3D.position] for typical real-time mesh translation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>[method:BufferGeometry updateFromObject] ( [page:Object3D object] )</h3>
|
|
|
|
|
|
+ <h3>[method:BufferGeometry updateFromObject] ( [param:Object3D object] )</h3>
|
|
<div>Updates the attributes for this BufferGeometry from an [page:Object3D].</div>
|
|
<div>Updates the attributes for this BufferGeometry from an [page:Object3D].</div>
|
|
|
|
|
|
|
|
|