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
7 changes: 7 additions & 0 deletions types/three/src/objects/BatchedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
*/
addInstance(geometryId: number): number;

/**
* Removes an existing instance from the BatchedMesh using the given instanceId.
* @param instanceId The id of an instance to remove from the BatchedMesh that was previously added via
* "addInstance".
*/
deleteInstance(instanceId: number): this;

/**
* Replaces the geometry at `geometryId` with the provided geometry. Throws an error if there is not enough space
* reserved for geometry. Calling this will change all instances that are rendering that geometry.
Expand Down