GrowableXYZArrayCache Class
Cache of GrowableXYZArray.
- Example usage includes clipping methods that can be structured to have disciplined reuse of a small number of arrays for a large number of steps.
Extends
Methods
| Name | Description | |
|---|---|---|
| constructor(): GrowableXYZArrayCache | Create a new cache for GrowableXYZArray objects. | |
| clearForCache(data: GrowableXYZArray): void Protected | Tidy up data so it can be reused. |
|
| createForCache(numPoints: number = 10, growthFactor: number = 1.5): GrowableXYZArray Protected | Create a new, ready-to-use GrowableXYZArray. | |
| grabAndFill(source: IndexedXYZCollection): GrowableXYZArray | Grab an array from the cache and immediately fill from a source. |
Inherited methods
| Name | Inherited from | Description |
|---|---|---|
| dropAllToCache(data: GrowableXYZArray[]): void Inherited | ReusableObjectCache<GrowableXYZArray> | Drop multiple objects to the cache. |
| dropToCache(data: GrowableXYZArray): void Inherited | ReusableObjectCache<GrowableXYZArray> | Present data for storage in the cache, and hence reuse by any subsequent grabFromCache. |
| grabFromCache(): GrowableXYZArray Inherited | ReusableObjectCache<GrowableXYZArray> | Grab an object from the cache. |
Defined in
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.