Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BatchedMesh: Add deleteGeometry(). #1306

Merged
merged 1 commit into from
Oct 24, 2024
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
6 changes: 6 additions & 0 deletions types/three/src/objects/BatchedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
*/
addInstance(geometryId: number): number;

/**
* @param geometryId The id of a geometry to remove from the [name] that was previously added via "addGeometry". Any
* instances referencing this geometry will also be removed as a side effect.
*/
deleteGeometry(geometryId: number): this;

/**
* 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
Expand Down
Loading