Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions types/three/src/objects/BatchedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
*/
getVisibleAt(instanceId: number): boolean;

/**
* Get the geometryIndex of the defined instance.
* @param instanceId The id of an instance to get the geometryIndex of.
*/
getGeometryIdAt(instanceId: number): number;

/**
* Sets the given color to the defined geometry instance.
* @param instanceId The id of the instance to set the color of.
Expand All @@ -162,6 +168,13 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
*/
setVisibleAt(instanceId: number, visible: boolean): this;

/**
* Sets the geometryIndex of the instance at the given index.
* @param instanceId The id of the instance to set the geometryIndex of.
* @param geometryId The geometryIndex to be use by the instance.
*/
setGeometryIdAt(instanceId: number, geometryId: number): this;

/**
* Adds the given geometry to the {@link BatchedMesh} and returns the associated index referring to it.
* @param geometry The geometry to add into the {@link BatchedMesh}.
Expand Down