Skip to content

Commit

Permalink
BatchedMesh: Add optimize(). (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Oct 24, 2024
1 parent 2ccba86 commit dcefd2a
Showing 1 changed file with 6 additions and 0 deletions.
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 @@ -229,6 +229,12 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
*/
setGeometryAt(geometryId: number, geometry: BufferGeometry): number;

/**
* Repacks the sub geometries in [name] to remove any unused space remaining from previously deleted geometry,
* freeing up space to add new geometry.
*/
optimize(): this;

getBoundingBoxAt(geometryId: number, target: Box3): Box3 | null;
getBoundingSphereAt(geometryId: number, target: Sphere): Sphere | null;
}
Expand Down

0 comments on commit dcefd2a

Please sign in to comment.