# Merge scalars of two models

**URL:** <https://discourse.slicer.org/t/merge-scalars-of-two-models/15682>\
**Category:** Support\
**Created:** [January 26, 2021, 9:18pm UTC](https://discourse.slicer.org/t/merge-scalars-of-two-models/15682 "2021-01-26T21:18:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 27, 2021, 3:36am UTC](https://discourse.slicer.org/t/merge-scalars-of-two-models/15682/3 "2021-01-27T03:36:45Z")

</div>

If you want to keep the models separate and just copy the scalar data then you can achieve it by following these steps:

- install ModelToModelDistance extension and use Model to model distance module to compute vector that moves points of one surface to the other (based on closest point of one surface on the other) - result will be stored in `PointToPointVector` point array of the output mesh
- use vtkWarpVector filter with `PointToPointVector` to warp the model to match the surface of the other model
- use vtkProbeFilter to get scalar values for each point
- copy over the point data to the original (unwarped) mesh

The first step is running the module, the other steps are running a VTK filter (few lines of Python code each). See examples of running VTK filters on model nodes in the [script repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository).

---

_[View the full topic](https://discourse.slicer.org/t/merge-scalars-of-two-models/15682)._
