# Custom Size Segment

**URL:** <https://discourse.slicer.org/t/custom-size-segment/10269>\
**Category:** Support\
**Created:** [February 14, 2020, 11:26pm UTC](https://discourse.slicer.org/t/custom-size-segment/10269 "2020-02-14T23:26:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [February 14, 2020, 11:26pm UTC](https://discourse.slicer.org/t/custom-size-segment/10269/1 "2020-02-14T23:26:41Z")

</div>

1. Can some one please help me with in creating a custom Box shape area of segmentation like the Sphere in the “Manipulating objects in the slice viewer” ?

2. Or is there a way to define the ROI and then create a segment out of the region within the ROI box ?  
I need to create a segment with define length and width and height.

 ![Screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/4/24fc73c417ef1b04c3f1949ef08444ade76b02a7.png)

1. Is it possible to cut out multiple segments at once ?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 16, 2020, 4:58am UTC](https://discourse.slicer.org/t/custom-size-segment/10269/2 "2020-02-16T04:58:42Z")

</div>

> [@manjula](#):
>
> Can some one please help me with in creating a custom Box shape area of segmentation like the Sphere in the “Manipulating objects in the slice viewer” ?

The same example works for box shape, too. You can use `vtkCubeSource` instead of `vtkSphereSource`.

> [@manjula](#):
>
> Or is there a way to define the ROI and then create a segment out of the region within the ROI box ?  
> I need to create a segment with define length and width and height.

You can create a box using `vtkCubeSource` and create a model from that. This is done in SlicerIGT extension’s “Create models” module.

> [@manjula](#):
>
> Is it possible to cut out multiple segments at once ?

Yes. For this, set masking settings to “overwrite all other segments” and then create a new segment and _fill_ that. If you fill a segment that will erase that region from all other segments.
