API Reference > geometry-core > ArraysAndInterfaces > GrowableXYZArray > mapComponent mapComponent Method Pass the (x,y,z) of each point to a function which returns a replacement for of of the 3 components. mapComponent(componentIndex: | "1" | "2", func: (x: number, y: number, z: number) => number): void Parameter Type Description componentIndex | "1" | "2" Index (0,1,2) of component to be replaced. func (x: number, y: number, z: number) => number function to be called as func(x,y,z), returning a replacement value for componentIndex Returns - void Defined in geometry3d/GrowableXYZArray.ts Line 1004 Last Updated: 12 June, 2024