# Export two aligned STL model from Meshlab to SLICER3D for deviation Measurement

**URL:** <https://discourse.slicer.org/t/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement/8264>\
**Category:** Support\
**Tags:** segment-statistics\
**Created:** [September 2, 2019, 4:44pm UTC](https://discourse.slicer.org/t/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement/8264 "2019-09-02T16:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_sabz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ss_sabz/32/4628_2.png) [@ss\_sabz](https://discourse.slicer.org/u/ss_sabz)\
**Post date:** [September 2, 2019, 4:44pm UTC](https://discourse.slicer.org/t/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement/8264/1 "2019-09-02T16:44:12Z")

</div>

Hi:

I need to find Deviation between two STL model points, So i found this link:

[How to compare/quantify (populate) two .stl models having shape difference to see result as color stl file and bar telling plus and minus changes?](https://www.researchgate.net/post/how_to_compare_quantify_populate_two_stl_models_having_shape_difference_to_see_result_as_color_stl_file_and_bar_telling_plus_and_minus_changes)

I one part of if t Mr **P.G. Makhija** (from Modern Dental College & Research Centre, Indore, INDIA) said:

> Thanks Petr Henys and Olivier Etienne for your kind suggestions. I was  
> able to do the job with help of Meshlab first by aligning meshes and  
> then analysing them with Slicer3D software’s shape population viewer  
> module. The problem is solved for me for the time being. Thanks.

So i have used the [MESHLAB](http://www.meshlab.net/) Software and aligned two Stl file together like this:  
[![enter image description here](https://i.stack.imgur.com/tZ7Es.png)](https://i.stack.imgur.com/tZ7Es.png)  
[![enter image description here](https://i.stack.imgur.com/HnX00.png)](https://i.stack.imgur.com/HnX00.png)

i can import the separated **stl** file in sliver like this:

[![enter image description here](https://i.stack.imgur.com/r5QJ9.png)](https://i.stack.imgur.com/r5QJ9.png)

But according two Mr **P.G. Makhija** point View i can not export aligned two **stl** file from [MESHLAB](http://www.meshlab.net/) to [SLICER3D](https://slicer.org)?

I will appreciate your help with this situation.

My similar question link via stack exchange:

[Export two aligned STL model from Meshlab to SLICER3D for deviation Measurement](https://engineering.stackexchange.com/questions/29929/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement)

---

<div class="post-metadata">

**Author:** ![steffen-o](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/steffen-o/32/2660_2.png) [@steffen-o](https://discourse.slicer.org/u/steffen-o)\
**Post date:** [September 4, 2019, 2:00pm UTC](https://discourse.slicer.org/t/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement/8264/2 "2019-09-04T14:00:01Z")

</div>

I don’t really know if I understand your question but you should use “Matrix:freeze current Matrix” in Meshlab after the alignment by right click on the transformed model (with an asterisk) . It’s like "Harden Transform in 3DSlicer. Otherwise, the tranformation matrix is not appied to the model.

---

<div class="post-metadata">

**Author:** ![tsehrhardt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsehrhardt/32/18470_2.png) [@tsehrhardt](https://discourse.slicer.org/u/tsehrhardt)\
**Post date:** [September 5, 2019, 12:03pm UTC](https://discourse.slicer.org/t/export-two-aligned-stl-model-from-meshlab-to-slicer3d-for-deviation-measurement/8264/3 "2019-09-05T12:03:33Z")

</div>

Do what steffen-o suggested: freezing the matrix for the aligned models before exporting.

You can also run the deviation in Meshlab 2016 using Filters --\> Sampling --\> Distance from Reference Mesh. This allows you to generate the signed distances and will even store the distance values in the Measured Mesh as a vertex quality which you can then use to colorize the model (Filters --\> Color Creation and Processing --\> Colorize by Vertex Quality) and also export as a colorized PLY if you want.
