# sm.voxelTerrainCell.copyTileCellVoxelsOnlyFilled

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

**Kind:** Function

**Environments:** Terrain

## Terrain

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

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

**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` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The source chunk coord in the tile to copy. |
| `dstPos` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The destination coord in the cell voxel grid. |
| `srcSize` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The source size in chunks to copy. |
