# sm.voxelTerrainCell.copyTileCellVoxels

Copies a custom amount of voxel data from a tile to the voxel grid.

**Kind:** Function

**Environments:** Terrain

## Terrain

``` { .lua .api-signature }
sm.voxelTerrainCell.copyTileCellVoxels(
    tileUid,
    cellOffsetX,
    cellOffsetY,
    rotationStep,
    srcPos?,
    dstPos?,
    srcSize?
)
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.voxelTerrainCell.md#copytilecellvoxels)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `tileUid` | [Uuid](../Terrain-Script-Environment/Userdata/Uuid.md) | The tile uuid. |
| `cellOffsetX` | integer | The tile cell X offset. |
| `cellOffsetY` | integer | The tile cell Y offset. |
| `rotationStep` | integer | The tile rotation (0-3). |
| `srcPos` *(optional)* | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The source chunk coord in the tile cell to copy. |
| `dstPos` *(optional)* | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The destination coord in the cell voxel grid. |
| `srcSize` *(optional)* | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The source size in chunks to copy. |
