Threepp.InstancedMesh¶
Instanced mesh
Renders multiple instances that share the same geometry and material.
Members¶
Constructors¶
Properties¶
Methods¶
InstancedMesh¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
geometry |
|
Geometry (BufferGeometry). |
material |
|
Material (Material). |
count |
|
Number of instances. |
Description
Constructor
type¶
Property \ Access: r/w
Description
"InstancedMesh" (read-only)
count¶
Property \ Access: r/w
Description
Number of instances
getMatrixAt¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
|
matrix |
|
Description
Gets the transformation matrix of an instance
setMatrixAt¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
|
matrix |
|
Description
Sets the transformation matrix of an instance
getColorAt¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
|
color |
|
Description
Gets the color of an instance
setColorAt¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
|
color |
|
Description
Sets the color of an instance
computeBoundingBox¶
Method
Description
Computes the bounding box
computeBoundingSphere¶
Method
Description
Computes the bounding sphere
dispose¶
Method
Description
Releases resources