About this Block
What it does: Trims Unit Cells from a Cell Map by using an Implicit Body as the filter. The Unit Cells are chosen based on the Fill type and the Cells to remain. Common uses:- Custom Cell Map shapes.
- Trims a Cell Map by removing entire Unit Cells. The Unit Cells maintain their size and aren’t able to be partially trimmed.
-
The Unit Cells to be trimmed are chosen based on the Fill type. The following Fill types are available:
- Centroid Inside: If the Unit Cell’s centroid is within the Body.
- All inside: The entire Unit Cell is within the Body.
- All touching: If any part of the Unit Cell is within the Body. The tolerance for this option is 10^-5 m.
- Depending on the Fill type you select, some cells may still be outside the Body.
-
The block keeps the Unit Cells based on the Cells to remain input. There are two options:
- Inside: Keeps all the Unit Cells that satisfy to the selected Fill type.
- Outside: Keeps all the Unit Cells that don’t satisfy to the selected Fill type.
-
If Trim Cell Map doesn’t create the results you are looking for, try using the Trim Lattice block.
- The Trim Cell Map block doesn’t trim Unit Cells. All Unit Cells are kept whole.
- The Trim Lattice block trims the Lattice, allowing Unit Cells to be trimmed to the specified Body.

Inputs
| Name | Type | Description |
|---|---|---|
| Cell map | Cell Map | Cell map to trim. |
| Body | Implicit Body | Implicit body trimming tool. |
| Fill type | Volume Lattice Fill Enum | Rule for trimming the cell map. |
Outputs
| Type |
|---|
| Cell Map |

