> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trim Slice Stack

## About this Block

The Trim Slice Stack Block trims a slice stack with an implicit body. The stack to remain can either be the inside, which are the slices that overlap with the body or the outside, which are the slices that do not overlap with the body. The feature tolerance is the minimum feature size of the trimmed boundary. This might result in open contours.

## Example File

Download Example: [Trim Slice Stack](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/trim_slice_stack.ntop)

*This file trims a sliced cube stack with an implicit sphere to only keep the slices within the sphere.*

![Trim Slice Stack](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/trim_slice_stack.png)

***

Trims a slice stack to exist only within the bounds of the body. Doing so may result in open contours.

### Inputs

| Name              | Type                                                                 | Description                                                        |
| ----------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Slice stack       | [Slice Stack](../../../../block-documentation/types/slice-stack)     | Slice stack on which the trimming will be performed.               |
| Trimming body     | [Implicit Body](../../../../block-documentation/types/implicit-body) | Body to use to perform trimming of the slice stack.                |
| Slices to remain  | Inside or Outside Enum                                               | Option to keep the slices that are inside or outside the boundary. |
| Feature tolerance | [Scalar](../../../../block-documentation/types/scalar)               | Minimum feature size of boundary to accurately capture.            |

### Outputs

| Type                                                             |
| ---------------------------------------------------------------- |
| [Slice Stack](../../../../block-documentation/types/slice-stack) |
