# How to cut polygons

**URL:** <https://discourse.slicer.org/t/how-to-cut-polygons/15608>\
**Category:** Community\
**Tags:** segmentation\
**Created:** [January 21, 2021, 12:30am UTC](https://discourse.slicer.org/t/how-to-cut-polygons/15608 "2021-01-21T00:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [January 21, 2021, 12:30am UTC](https://discourse.slicer.org/t/how-to-cut-polygons/15608/1 "2021-01-21T00:30:16Z")

</div>

The scissor tool in the segment editor can be set to circle, square, and any shape. However, when cutting any shape, the edge is an irregular curve. Is there a way to set it as the linear shape between two points? I capture a picture, I hope my friends can understand what I mean and give me some suggestions. Of course, I’m talking about doing it in the segment editor, not after exporting the model. Because there are many steps to complete, it is trouble to export the model repeatedly and then cut. It will be very convenient if scissor can be used to cut directly to this shape under the line.

 ![11](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/8/58203bc3dae57b592864347fba8eab2340cf3f94.jpeg)

---

<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:** [January 21, 2021, 12:38am UTC](https://discourse.slicer.org/t/how-to-cut-polygons/15608/2 "2021-01-21T00:38:53Z")

</div>

If you need to combine segments with a predefined shape (e.g., for creating custom surgical guides) then you can create a model, position it freely using a transform (interactively in the viewer, or adjusting parameters in Transforms module or programmatically), then import it as a segment and combine with other segments using “Logical operators” effect.

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [January 21, 2021, 12:46am UTC](https://discourse.slicer.org/t/how-to-cut-polygons/15608/3 "2021-01-21T00:46:54Z")

</div>

Thanks to Professor Andras Lasso for the answer, but as you can see, it took me a long time to complete this puzzle. The different bone flaps are cut through straight lines, so it is more regular. Of course I used many steps of logic Calculation

 ![微信图片_20210121084056](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/e/1e46a86b4550f9a1884c108ccf362c7ebc865031.jpeg)

---

<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:** [January 21, 2021, 1:06am UTC](https://discourse.slicer.org/t/how-to-cut-polygons/15608/4 "2021-01-21T01:06:23Z")

</div>

All built-in modules are general-purpose tools. They are very flexible and can be used to design and test a processing workflow.

Once you know exactly what you want to do (validated the workflow on a few dozens of cases manually), you can create application-specific tool, which is as simple and convenient as possible (only show relevant options, require the minimum necessary user inputs). This application-specific tool will be always much, much better for that particular task than any general-purpose tool. In Slicer, these are usually implemented as small Python scripted modules.

For your use case, you could specify a few cut planes and markup points and based on that perform the cutting and remodeling fully automatically (or maybe controlled by a few parameters). You can use Dynamic Modeler module to cut up a model automatically using multiple cutting planes. You may get some inspiration from this video:

[![](https://img.youtube.com/vi/F6fNMQTxD-4/maxresdefault.jpg "3D Slicer: Dynamic Modeler - Parametric Surface Editing for Biomedical Applications") ](https://www.youtube.com/watch?v=F6fNMQTxD-4)
