diff --git a/types/three/src/objects/BatchedMesh.d.ts b/types/three/src/objects/BatchedMesh.d.ts index 2669b5c08..326479a2d 100644 --- a/types/three/src/objects/BatchedMesh.d.ts +++ b/types/three/src/objects/BatchedMesh.d.ts @@ -141,6 +141,12 @@ declare class BatchedMesh extends Mesh { */ 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. @@ -162,6 +168,13 @@ declare class BatchedMesh extends Mesh { */ 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}.