    

 ## On this page

  

 

 # mesh:morphing

 Last update: 31.07.2026 

**Version: 0.0.0**

## Description

Applies morphing on a meshed region depending on an input displacement field.

## Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.

Pin numberNameStatusExpected type(s)0[displacement](#input_0)Required[`field`](../../core-concepts/dpf-types.md#field), [`fields_container`](../../core-concepts/dpf-types.md#fields-container)**1**[disp\_mesh](#input_1)[`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)**2**[mesh](#input_2)Required[`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)**3**[in\_place](#input_3)[`bool`](../../core-concepts/dpf-types.md#standard-types)**4**[morphing\_type](#input_4)[`int32`](../../core-concepts/dpf-types.md#standard-types)**5**[morphing\_manager\_data](#input_5)**6**[sliding\_planes](#input_6)[`field`](../../core-concepts/dpf-types.md#field)**7**[sliding\_nodes](#input_7)[`scopings_container`](../../core-concepts/dpf-types.md#scopings-container)<a id="input_0"></a>

### displacement (Pin 0)

- **Required:** Yes
- **Expected type(s):** [`field`](../../core-concepts/dpf-types.md#field), [`fields_container`](../../core-concepts/dpf-types.md#fields-container)

expects either a field or a fields container with one field

<a id="input_1"></a>

### disp\_mesh (Pin 1)

- **Required:** No
- **Expected type(s):** [`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)

mesh on which displacement are scoped

<a id="input_2"></a>

### mesh (Pin 2)

- **Required:** Yes
- **Expected type(s):** [`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)

mesh to morph

<a id="input_3"></a>

### in\_place (Pin 3)

- **Required:** No
- **Expected type(s):** [`bool`](../../core-concepts/dpf-types.md#standard-types)

Apply in place morhing (the input mesh is changed instead of copied) (default is true)

<a id="input_4"></a>

### morphing\_type (Pin 4)

- **Required:** No
- **Expected type(s):** [`int32`](../../core-concepts/dpf-types.md#standard-types)

morphing algorithm to use (0=PrimeRBF, 1=BSpline, 2=TetLinear, 3=TetRBF, 4=FFI) (default is 0)

<a id="input_5"></a>

### morphing\_manager\_data (Pin 5)

- **Required:** No
- **Expected type(s):**

Morphing Manager Data from prepare\_morphing\_operator (needed if disp\_coordinates not specified).

<a id="input_6"></a>

### sliding\_planes (Pin 6)

- **Required:** No
- **Expected type(s):** [`field`](../../core-concepts/dpf-types.md#field)

Sliding planes

<a id="input_7"></a>

### sliding\_nodes (Pin 7)

- **Required:** No
- **Expected type(s):** [`scopings_container`](../../core-concepts/dpf-types.md#scopings-container)

Sliding nodes

## Outputs

This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.

Pin numberNameExpected type(s)0[mesh](#output_0)[`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)<a id="output_0"></a>

### mesh (Pin 0)

- **Expected type(s):** [`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)

morphed mesh

## Configurations

This operator supports [configuration options](../../core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](../../core-concepts/operator-configurations.md#mutex)

- **Expected type(s):** [`bool`](../../core-concepts/dpf-types.md#standard-types)
- **Default value:** false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

### [num\_threads](../../core-concepts/operator-configurations.md#num_threads)

- **Expected type(s):** [`int32`](../../core-concepts/dpf-types.md#standard-types)
- **Default value:** 1

### [run\_in\_parallel](../../core-concepts/operator-configurations.md#run_in_parallel)

- **Expected type(s):** [`bool`](../../core-concepts/dpf-types.md#standard-types)
- **Default value:** false

Loops are allowed to run in parallel if the value of this config is set to true.

## Scripting

This operator can be accessed through scripting interfaces using these identifiers.

**Category**: mesh

**Plugin**: N/A

**Scripting name**: morphing

**Full name**: mesh.morphing

**Internal name**: morphing

**License**: any\_dpf\_supported\_increments

## Examples

These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

C++```cpp
#include "dpf_api.h"

ansys::dpf::Operator op("morphing"); // operator instantiation
op.connect(0, my_displacement);
op.connect(1, my_disp_mesh);
op.connect(2, my_mesh);
op.connect(3, my_in_place);
op.connect(4, my_morphing_type);
op.connect(5, my_morphing_manager_data);
op.connect(6, my_sliding_planes);
op.connect(7, my_sliding_nodes);
ansys::dpf::MeshedRegion my_mesh = op.getOutput<ansys::dpf::MeshedRegion>(0);

```

CPython```python
import ansys.dpf.core as dpf

op = dpf.operators.mesh.morphing() # operator instantiation
op.inputs.displacement.connect(my_displacement)
op.inputs.disp_mesh.connect(my_disp_mesh)
op.inputs.mesh.connect(my_mesh)
op.inputs.in_place.connect(my_in_place)
op.inputs.morphing_type.connect(my_morphing_type)
op.inputs.morphing_manager_data.connect(my_morphing_manager_data)
op.inputs.sliding_planes.connect(my_sliding_planes)
op.inputs.sliding_nodes.connect(my_sliding_nodes)
my_mesh = op.outputs.mesh()

```

IPython```python
import mech_dpf
import Ans.DataProcessing as dpf

op = dpf.operators.mesh.morphing() # operator instantiation
op.inputs.displacement.Connect(my_displacement)
op.inputs.disp_mesh.Connect(my_disp_mesh)
op.inputs.mesh.Connect(my_mesh)
op.inputs.in_place.Connect(my_in_place)
op.inputs.morphing_type.Connect(my_morphing_type)
op.inputs.morphing_manager_data.Connect(my_morphing_manager_data)
op.inputs.sliding_planes.Connect(my_sliding_planes)
op.inputs.sliding_nodes.Connect(my_sliding_nodes)
my_mesh = op.outputs.mesh.GetData()

```

  
## Changelog

- Version 0.0.0: Initial release.