# How to change parameters for output model?

**URL:** <https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520>\
**Category:** Support\
**Created:** [October 3, 2024, 1:51pm UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520 "2024-10-03T13:51:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonNithal](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@JonNithal](https://discourse.slicer.org/u/JonNithal)\
**Post date:** [October 3, 2024, 1:51pm UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/1 "2024-10-03T13:51:49Z")

</div>

Hello,

I am an orthopedic specialist in the United States, specializing in knee replacements. Our organization has been using Mimics for years, but we decided to switch to an alternative due to the increasing cost of the software. I came across your free 3D Slicer software, and it has helped me visualize some of my cases. However, I am facing a slight difficulty when visualizing a model.When I click on the “Export Visible Segment to Model” option under the Data section in Slicer, I expected to see options to apply adjustments to the model before converting it. From a surgeon’s perspective, having some control over the final model based on parameters would be beneficial.

Mimics parameters:

 ![IMG_20241003_152448](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/7/376ca3dadca58f350cc685ade02553d196551265.png)

As I am new to Slicer, is it possible to adjust parameters such as the number of large shells (shell reduction), triangle reduction (tolerance, iterations, edge angle, etc.), matrix reduction (XY or Z reduction), etc., when exporting a visible segment to a model?

Thank you for any help.

---

<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:** [October 3, 2024, 2:00pm UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/2 "2024-10-03T14:00:10Z")

</div>

This is a typical example of MIMICS combining several simple, independent operations into a single very complex operation. In Slicer, exporting to mesh is independent from mesh reduction and smoothing, because several mesh reduction and smoothing operations are available in Slicer, and the user is free to choose between them.

You can smooth the segmentation before export in Segment Editor, using [Smoothing effect](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#smoothing). You can adjust Smoothing factor during mesh generation using the [`Show 3D` button](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#main-options). You can smooth and decimate the exported model using [Surface Toolbox](https://slicer.readthedocs.io/en/latest/user_guide/modules/surfacetoolbox.html) module.

---

<div class="post-metadata">

**Author:** ![JonNithal](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@JonNithal](https://discourse.slicer.org/u/JonNithal)\
**Post date:** [October 4, 2024, 5:29am UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/3 "2024-10-04T05:29:04Z")

</div>

Thank you for your reply.

> [@lassoan](#):
>
> This is a typical example of MIMICS combining several simple, independent operations into a single very complex operation. In Slicer, exporting to mesh is independent from mesh reduction and smoothing, because several mesh reduction and smoothing operations are available in Slicer, and the user is free to choose between them.

I see, that makes sense now.

> [@lassoan](#):
>
> You can smooth the segmentation before export in Segment Editor, using [Smoothing effect](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#smoothing). You can adjust Smoothing factor during mesh generation using the [`Show 3D` button](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#main-options). You can smooth and decimate the exported model using [Surface Toolbox](https://slicer.readthedocs.io/en/latest/user_guide/modules/surfacetoolbox.html) module.

What about matrix reduction and interpolation? I noticed Slicer performs gray value interpolation, if I am correct.

I have installed the Surface Toolbox but didn’t see an option for matrix reduction or interpolation.

---

<div class="post-metadata">

**Author:** ![JonNithal](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@JonNithal](https://discourse.slicer.org/u/JonNithal)\
**Post date:** [October 7, 2024, 4:05am UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/4 "2024-10-07T04:05:54Z")

</div>

Hi @lassoan , Can you please answer on this matter?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [October 7, 2024, 4:17am UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/5 "2024-10-07T04:17:43Z")

</div>

> [@JonNithal](#):
>
> I have installed the Surface Toolbox but didn’t see an option for matrix reduction or interpolation.

We are not experts in MIMICS, you have to explain to use what matrix reduction does (it simply seems like independent reduction of each axis, I don’t know what “matrix” refers to in this context), so that we can guide you.

---

<div class="post-metadata">

**Author:** ![JonNithal](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@JonNithal](https://discourse.slicer.org/u/JonNithal)\
**Post date:** [October 7, 2024, 8:53am UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/6 "2024-10-07T08:53:31Z")

</div>

I use matrix reduction to reduce the resolution in either the X, Y, or Z dimension. The values define how much reduction we want to apply to decrease the computational load while maintaining acceptable model quality.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [October 7, 2024, 4:24pm UTC](https://discourse.slicer.org/t/how-to-change-parameters-for-output-model/39520/7 "2024-10-07T16:24:53Z")

</div>

Again I am not a mimics person, but from my experience that type of anisotropic resampling cannot be applied to the surface models. My guess is, similar to @lassoan previously said, Mimics is downsampling the voxel data first, and then making the model, which are explicitly separate operations in Slicer.

You can export your model, and then use the decimate option to reduce the number of faces. This is far more simple. You can dial down the decimation to determine the model quality (no decimation to 99% decimation).

However, if you want to do exactly do what mimics is doing, you can do that as well. It will be separate steps. You can export your segmentation as a labelmap, then use the `ResampleScalarVolume` to downsample each axis independently, and then from that you use the `ModelMaker` module to create the model from the downsampled labelmap.
