> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# merge_meshes class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

Take a set of meshes and assemble them in a unique one

available inputs: `naive_merge_elements` (bool) (optional), `should_merge_named_selections` (bool) (optional), `meshes1` (MeshedRegion, MeshesContainer), `meshes2` (MeshedRegion, MeshesContainer), `merge_method` (Int32) (optional), `box_size` (double) (optional), `remove_duplicate_elements` (Int32) (optional)

available outputs: `merges_mesh` (MeshedRegion)

## Example

```python theme={null}
op = merge_meshes()

op = merge_meshes(naive_merge_elements=my_naive_merge_elements,should_merge_named_selections=my_should_merge_named_selections,meshes1=my_meshes1,meshes2=my_meshes2,merge_method=my_merge_method,box_size=my_box_size,remove_duplicate_elements=my_remove_duplicate_elements)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.utility` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### naive\_merge\_elements

If true, merge the elemental Property Fields of the input meshes assuming that there is no repetition in their scoping ids. Default is false.

**Type:** *LinkableInput*

### should\_merge\_named\_selections

For certain types of files (such as RST), scoping from names selection does not need to be merged.If this pin is true, the merge occurs. If this pin is false, the merge does not occur. Default is true.

**Type:** *LinkableInput*

### meshes1

A vector of meshed region to merge or meshed region from pin 0 to ...

**Type:** *LinkableInput*

### meshes2

A vector of meshed region to merge or meshed region from pin 0 to ...

**Type:** *LinkableInput*

### merge\_method

0: merge by distance, 1: merge by node id (default)

**Type:** *LinkableInput*

### box\_size

Box size used when merging by distance. Default value is 1e-12.

**Type:** *LinkableInput*

### remove\_duplicate\_elements

0: keep duplicate elements (default), 1: remove duplicate elements

**Type:** *LinkableInput*

## Outputs

### merges\_mesh

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
merge_meshes()
```

#### Constructor

```python theme={null}
merge_meshes(naive_merge_elements, should_merge_named_selections, meshes1, meshes2, merge_method, box_size, remove_duplicate_elements, config)
```

**Parameters:**

* `naive_merge_elements` (*object*)
* `should_merge_named_selections` (*object*)
* `meshes1` (*object*)
* `meshes2` (*object*)
* `merge_method` (*object*)
* `box_size` (*object*)
* `remove_duplicate_elements` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
merge_meshes(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
