    

 ## On this page

  

 

 # Class ansys::dpf::MeshedRegion

 Last update: 25.03.2026 

<a id="classansys-dpf-meshedregion"></a>

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

Holds the mesh for a given region (body, faces, skin, ...).

The meshed region is an entity describing a mesh. Node and element scopings, element types, connectivity (list of node indices composing each element) and node coordinates are the fundamental entities composing the meshed region. It can also have materials, named selections...

**Inherits from**:

- [ansys::dpf::DpfTypes](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes)

## Members

- [addElement](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a11b6e06dfea398609fa9fb25ad4333bb)
- [addElement](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a8bda0d11514aaf91d367d88b700f05c7)
- [addNode](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a2b4891674d74a792b63318c305963500)
- [addNode](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a3d2d3cb295d55dd3ab8d9630e03e09dc)
- [availableNamedSelections](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a3b768ab61193b7b1a6359f4ac619d1c4)
- [availablePropertyFields](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ad4dd7e2fb551172b494c559e403d902a)
- [callAPI](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aea34d37e0c080126eff70db34bf46597)
- [connectivity](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a2c75723ffc634c39b081eecd31d54309)
- [deep\_copy](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a1506cd74943091c868e037cd9eafde94)
- [describe](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a9977945710983bc03d2940fa007847b2)
- [elementDescriptorByElementId](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a5809c805cc972f4958fab4375be4f8cb)
- [elementScoping](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a3056a0fc6d69ca8769e33de6be0cecf0)
- [elementShape](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a04833f8ff06d70a58259eddf7e7b350c)
- [elementTypes](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a0e89e4e209380a10140c14cd91655907)
- [empty](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a39cd546c42518e2332be8f287db95459)
- [emptyMeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a597c0914caa5c5f069c74d981bb36d89)
- [faceScoping](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a4b0b3c40b12475dfafc3fa9c5bc5ac9c)
- [fillCursor](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a012ff219aea7e92a889a77611de00b3a)
- [getClient](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a968afd9daa0b0f13b65a2ac61369d73a)
- [hasBeam](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a4c0e5dd26ae85f7f9817848b6cf0e050)
- [hasBeenMovedLocally](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a1a5634202c15404b6b24e8f50e51cb66)
- [hasInternalObject](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ae198f89868d85c7db6dc1a934a1d3c15)
- [hasOnlyBeam](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a4d5721fffae74a36f5df08f17b3e8814)
- [hasOnlyPoint](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ad4bd4ba5896708b8c071dd45f342f1e0)
- [hasOnlyShell](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a07f2c499670bb730703defe33d7a2366)
- [hasOnlySkin](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a329260f43c0178f2789082717916799c)
- [hasOnlySolid](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ad731342d5494aba788fdf45406bae322)
- [hasPoint](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1aeea1bdb261048a2f951c4e14e557fcfc)
- [hasPolygons](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a13ff7e2b797ca3b50732e0d1859f03d8)
- [hasPolyhedrons](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a511d93666c76398d3553fbf697172c8c)
- [hasPropField](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a1c6b2126a94dc0b94f01c2ae179ad44a)
- [hasShell](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a606ffd0951d9f75cc632754a8619153c)
- [hasSkin](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a0410fcda938500f26b02dd149816e693)
- [hasSolid](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a24ef139add0dbf2afee4fe4fc39da778)
- [isOnCommonAPI](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1a9f9789ff61cc9d400a2a344830706b73)
- [isSameObject](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1aa64d5f8fcd7d85ad6ebf708494dbefd7)
- [lengthUnit](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1aed167b03463f42d94d424797529eccad)
- [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ade6fe7a4445f4e135e58c531dc97e759)
- [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1aba448efff0199ee26bed06ba92c6f5bb)
- [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a856308261c05f739c04f38c1b35ca072)
- [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a5707eb2666551a4af4f27403dc1b69da)
- [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a505ce797a4462fa1b7dfae2e8156476e)
- [name](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1acf7de56fc6905e8da6679ea9d8df2a5e)
- [namedSelection](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a1f12d06a08e8afe8fe59c0a8d6aee779)
- [nodesCoordinates](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a482ae171f257bfe86c8e567f0882caa4)
- [nodeScoping](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ad5df08993b7c588d9565ef1c1ea4813d)
- [numberOfElements](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ac3a262bc236fda82374a462d7c9e240c)
- [numberOfFaces](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a8af38259739409435e0de446f7ff6499)
- [numberOfNodes](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1af8ad6b50708b2c201a457c5da8e819da)
- [numNodesOfElement](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a9581baba0973ffff79236c95a131f62a)
- [operator=](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a69670c1f8a5ff252d4377429928f7f9e)
- [operator=](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1aac882f2631e077aa86fdb6b7aa802ea0)
- [prepareConstruction](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1aa7b984923ddd90379f08bc5b9831a95e)
- [propField](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a198535c4c5a86ce1920cf2f5cd6c2d9d)
- [setConnectivity](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a4f7720c8b112b1d02eedcc4564986232)
- [setElementTypes](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a6521976e1c6a8ed3a1357c979cd380aa)
- [setLengthUnit](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a638d38d0400a6c64b85082a4c4beb105)
- [setName](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a76b415d07d6609006546fe28dac4d45b)
- [setNamedSelectionScoping](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1afdcea89a088a5a05244abfa8a2457040)
- [setNodesCoordinates](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1ad5fbd4c5a82f47d45eba62536cba68a1)
- [setPropertyField](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a2bc27437f9025696a0d07072bd4bafe1)
- [~DpfTypes](classansys-dpf-dpftypes.md#classansys-dpf-dpftypes-1ab7c83b6ea160c2b115e056f6c312112f)
- [~MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion-1a88e60f0acd3fc6656f507603a11ef950)

## Friends

## Public functions

<a id="classansys-dpf-meshedregion-1ade6fe7a4445f4e135e58c531dc97e759"></a>

### Function MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::MeshedRegion::MeshedRegion()

```

**Return type**:

<a id="classansys-dpf-meshedregion-1aba448efff0199ee26bed06ba92c6f5bb"></a>

### Function MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::MeshedRegion::MeshedRegion(Client const *const client)

```

Create a new meshed region on a server.

**Parameters**:

- [Client](classansys-dpf-client.md#classansys-dpf-client) const \*const **client**: \[in\] [Client](classansys-dpf-client.md#classansys-dpf-client) instance designating the IP, port and protocol to use.

**Return type**:

<a id="classansys-dpf-meshedregion-1a856308261c05f739c04f38c1b35ca072"></a>

### Function MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::MeshedRegion::MeshedRegion(int id, Client const *const client)

```

Retrieve an existing instance of [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion) on a server.

**Parameters**:

- int **id**: \[in\] Id of the [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion) object on the server's database.
- [Client](classansys-dpf-client.md#classansys-dpf-client) const \*const **client**: \[in\] [Client](classansys-dpf-client.md#classansys-dpf-client) instance designating the IP, port and protocol to use.

**Return type**:

<a id="classansys-dpf-meshedregion-1a88e60f0acd3fc6656f507603a11ef950"></a>

### Function ~MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
virtual ansys::dpf::MeshedRegion::~MeshedRegion()

```

**Return type**:

<a id="classansys-dpf-meshedregion-1a5707eb2666551a4af4f27403dc1b69da"></a>

### Function MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::MeshedRegion::MeshedRegion(MeshedRegion const &)

```

**Parameters**:

- MeshedRegion const &amp;

**Return type**:

<a id="classansys-dpf-meshedregion-1a505ce797a4462fa1b7dfae2e8156476e"></a>

### Function MeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
ansys::dpf::MeshedRegion::MeshedRegion(MeshedRegion &&) noexcept

```

**Parameters**:

- MeshedRegion &amp;&amp;

**Return type**:

<a id="classansys-dpf-meshedregion-1a69670c1f8a5ff252d4377429928f7f9e"></a>

### Function operator=

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
MeshedRegion & ansys::dpf::MeshedRegion::operator=(MeshedRegion const &)

```

**Parameters**:

- MeshedRegion const &amp;

**Return type**: MeshedRegion &amp;

<a id="classansys-dpf-meshedregion-1aac882f2631e077aa86fdb6b7aa802ea0"></a>

### Function operator=

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
MeshedRegion & ansys::dpf::MeshedRegion::operator=(MeshedRegion &&) noexcept

```

**Parameters**:

- MeshedRegion &amp;&amp;

**Return type**: MeshedRegion &amp;

<a id="classansys-dpf-meshedregion-1af8ad6b50708b2c201a457c5da8e819da"></a>

### Function numberOfNodes

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
dp_int ansys::dpf::MeshedRegion::numberOfNodes() const

```

**Returns**:

Number of nodes in mesh.

**Return type**: [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

<a id="classansys-dpf-meshedregion-1ac3a262bc236fda82374a462d7c9e240c"></a>

### Function numberOfElements

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
dp_int ansys::dpf::MeshedRegion::numberOfElements() const

```

**Returns**:

Number of elements in mesh.

**Return type**: [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

<a id="classansys-dpf-meshedregion-1a8af38259739409435e0de446f7ff6499"></a>

### Function numberOfFaces

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
dp_int ansys::dpf::MeshedRegion::numberOfFaces() const

```

**Returns**:

Number of faces in mesh.

**Return type**: [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

<a id="classansys-dpf-meshedregion-1aed167b03463f42d94d424797529eccad"></a>

### Function lengthUnit

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Unit ansys::dpf::MeshedRegion::lengthUnit() const

```

**Returns**:

Length unit for mesh.

**Return type**: [Unit](classansys-dpf-unit.md#classansys-dpf-unit)

<a id="classansys-dpf-meshedregion-1a482ae171f257bfe86c8e567f0882caa4"></a>

### Function nodesCoordinates

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Field ansys::dpf::MeshedRegion::nodesCoordinates() const

```

**Returns**:

[Field](classansys-dpf-field.md#classansys-dpf-field) containing mesh node coordinates.

**Return type**: Field

<a id="classansys-dpf-meshedregion-1a198535c4c5a86ce1920cf2f5cd6c2d9d"></a>

### Function propField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
PropertyField ansys::dpf::MeshedRegion::propField(PropertyType const &prop) const

```

**Returns**:

Property field given by property type.

**Parameters**:

- [PropertyType](structansys-dpf-propertytype.md#structansys-dpf-propertytype) const &amp; **prop**: \[in\] Property type of which to get property field.

**Return type**: PropertyField

<a id="classansys-dpf-meshedregion-1a1c6b2126a94dc0b94f01c2ae179ad44a"></a>

### Function hasPropField

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasPropField(PropertyType const &prop) const

```

**Returns**:

Indication that property type exists.

**Parameters**:

- [PropertyType](structansys-dpf-propertytype.md#structansys-dpf-propertytype) const &amp; **prop**: \[in\] Property type of which to check existence.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1ad4dd7e2fb551172b494c559e403d902a"></a>

### Function availablePropertyFields

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
std::vector< std::string > ansys::dpf::MeshedRegion::availablePropertyFields() const

```

**Returns**:

Vector of property fields withing mesh. See [property\_types](structansys-dpf-property-types.md#structansys-dpf-property-types) for examples of available types.

**Return type**: std::vector&lt; std::string &gt;

<a id="classansys-dpf-meshedregion-1a0e89e4e209380a10140c14cd91655907"></a>

### Function elementTypes

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
PropertyField ansys::dpf::MeshedRegion::elementTypes() const

```

**Returns**:

Property field describing element types within mesh.

**Return type**: PropertyField

<a id="classansys-dpf-meshedregion-1a2c75723ffc634c39b081eecd31d54309"></a>

### Function connectivity

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
PropertyField ansys::dpf::MeshedRegion::connectivity() const

```

**Returns**:

Property field describing element connectivity for mesh.

**Return type**: PropertyField

<a id="classansys-dpf-meshedregion-1ad5df08993b7c588d9565ef1c1ea4813d"></a>

### Function nodeScoping

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Scoping ansys::dpf::MeshedRegion::nodeScoping() const

```

**Returns**:

[Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) describing nodes of mesh.

**Return type**: [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping)

<a id="classansys-dpf-meshedregion-1a3056a0fc6d69ca8769e33de6be0cecf0"></a>

### Function elementScoping

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Scoping ansys::dpf::MeshedRegion::elementScoping() const

```

**Returns**:

[Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) describing elements of mesh.

**Return type**: [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping)

<a id="classansys-dpf-meshedregion-1a4b0b3c40b12475dfafc3fa9c5bc5ac9c"></a>

### Function faceScoping

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Scoping ansys::dpf::MeshedRegion::faceScoping() const

```

**Returns**:

[Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) describing faces of mesh.

**Return type**: [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping)

<a id="classansys-dpf-meshedregion-1a3b768ab61193b7b1a6359f4ac619d1c4"></a>

### Function availableNamedSelections

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
std::vector< std::string > ansys::dpf::MeshedRegion::availableNamedSelections() const

```

**Returns**:

Vector of named selections withing mesh.

**Return type**: std::vector&lt; std::string &gt;

<a id="classansys-dpf-meshedregion-1a1f12d06a08e8afe8fe59c0a8d6aee779"></a>

### Function namedSelection

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
Scoping ansys::dpf::MeshedRegion::namedSelection(std::string const &name) const

```

**Returns**:

[Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) for given named selection.

**Parameters**:

- std::string const &amp; **name**: \[in\] Name of which to get scoping.

**Return type**: [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping)

<a id="classansys-dpf-meshedregion-1a012ff219aea7e92a889a77611de00b3a"></a>

### Function fillCursor

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
void ansys::dpf::MeshedRegion::fillCursor(dp_index element_index, ElementCursor &cursor) const

```

Get a cursor for given element.

**Parameters**:

- [dp\_index](namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **element\_index**: \[in\] Index of element within mesh for which to get cursor.
- [ElementCursor](classansys-dpf-elementcursor.md#classansys-dpf-elementcursor) &amp; **cursor**: \[out\] Cursor for given element.

**Return type**: void

<a id="classansys-dpf-meshedregion-1aa7b984923ddd90379f08bc5b9831a95e"></a>

### Function prepareConstruction

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::prepareConstruction(dp_int n_nodes, dp_int n_elements)

```

Allocate and reserve space for given number of nodes and elements. node scoping and coordinates vectors are reserved for n\_nodes, elements scoping, connectivity and elements type property field are reserved for n\_elements. this method should always be called before adding any node or element.

**Parameters**:

- [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **n\_nodes**: \[in\] Expected number of nodes within mesh.
- [dp\_int](namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **n\_elements**: \[in\] Expected number of elements within mesh.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a2b4891674d74a792b63318c305963500"></a>

### Function addNode

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::addNode(dp_id node_id, std::array< dp_double, 3 > const &data)

```

Add node to mesh.

**Parameters**:

- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **node\_id**: \[in\] Id of node.
- std::array&lt; [dp\_double](namespaceansys-dpf.md#namespaceansys-dpf-1acb480013bfed185b5e34a0bdcb0e3790), 3 &gt; const &amp; **data**: \[in\] XYZ coordinates of node.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a3d2d3cb295d55dd3ab8d9630e03e09dc"></a>

### Function addNode

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::addNode(dp_id node_id, dp_double *const data)

```

Add node to mesh.

**Parameters**:

- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **node\_id**: \[in\] Id of node.
- [dp\_double](namespaceansys-dpf.md#namespaceansys-dpf-1acb480013bfed185b5e34a0bdcb0e3790) \*const **data**: \[in\] XYZ coordinates of node.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a11b6e06dfea398609fa9fb25ad4333bb"></a>

### Function addElement

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::addElement(ElementDescriptor const &descriptor, dp_id elem_id, std::vector< dp_index > const &node_indices)

```

Add element to mesh. Not available in remote, use the implementation with the element shape instead.

**Parameters**:

- [ElementDescriptor](structansys-dpf-elementdescriptor.md#structansys-dpf-elementdescriptor) const &amp; **descriptor**: \[in\] Description of element.
- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **elem\_id**: \[in\] Id of element.
- std::vector&lt; [dp\_index](namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) &gt; const &amp; **node\_indices**: \[in\] Vector of node ids of element.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a8bda0d11514aaf91d367d88b700f05c7"></a>

### Function addElement

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::addElement(ansys::dpf::elements::EShape shape, dp_id elem_id, std::vector< dp_index > const &node_indices)

```

Add element to mesh.

**Parameters**:

- ansys::dpf::elements::EShape **shape**: \[in\] Shape of the element.
- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **elem\_id**: \[in\] Id of element.
- std::vector&lt; [dp\_index](namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) &gt; const &amp; **node\_indices**: \[in\] Vector of node ids of element.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a638d38d0400a6c64b85082a4c4beb105"></a>

### Function setLengthUnit

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setLengthUnit(Unit const &unit)

```

Set length unit for mesh.

**Parameters**:

- [Unit](classansys-dpf-unit.md#classansys-dpf-unit) const &amp; **unit**: \[in\] Length unit for mesh.

**Return type**: void

<a id="classansys-dpf-meshedregion-1afdcea89a088a5a05244abfa8a2457040"></a>

### Function setNamedSelectionScoping

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setNamedSelectionScoping(std::string const &name, Scoping scoping)

```

Set a named selection scoping for mesh.

**Parameters**:

- std::string const &amp; **name**: \[in\] Named selection name.
- [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) **scoping**: \[in\] [Scoping](classansys-dpf-scoping.md#classansys-dpf-scoping) to set.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a2bc27437f9025696a0d07072bd4bafe1"></a>

### Function setPropertyField

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setPropertyField(std::string const &name, PropertyField property_field)

```

Set an elemental property field for mesh. Its elemental scoping must be equal to the one that has already been set into the mesh, if it exists.

**Parameters**:

- std::string const &amp; **name**: \[in\] Property name:

**See also**: common\_property\_names.

- PropertyField **property\_field**: \[in\] Property field to set.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a4f7720c8b112b1d02eedcc4564986232"></a>

### Function setConnectivity

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setConnectivity(PropertyField connectivity)

```

Set a connectivity (nodes of the elements) property field.

**Parameters**:

- PropertyField **connectivity**: \[in\] Connectivity to set.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a6521976e1c6a8ed3a1357c979cd380aa"></a>

### Function setElementTypes

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setElementTypes(PropertyField element_types)

```

Set element types property field.

**Parameters**:

- PropertyField **element\_types**: \[in\] Element types data to set..

**Return type**: void

<a id="classansys-dpf-meshedregion-1ad5fbd4c5a82f47d45eba62536cba68a1"></a>

### Function setNodesCoordinates

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setNodesCoordinates(Field coordinates)

```

Set a field for mesh.

**Parameters**:

- Field **coordinates**: \[in\] [Field](classansys-dpf-field.md#classansys-dpf-field) to set.

**Return type**: void

<a id="classansys-dpf-meshedregion-1a4c0e5dd26ae85f7f9817848b6cf0e050"></a>

### Function hasBeam

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasBeam() const

```

**Returns**:

Indication if mesh contains beam elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a4d5721fffae74a36f5df08f17b3e8814"></a>

### Function hasOnlyBeam

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasOnlyBeam() const

```

**Returns**:

Indication if mesh only contains beam elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a606ffd0951d9f75cc632754a8619153c"></a>

### Function hasShell

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasShell() const

```

**Returns**:

Indication if mesh contains shell elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a07f2c499670bb730703defe33d7a2366"></a>

### Function hasOnlyShell

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasOnlyShell() const

```

**Returns**:

Indication if mesh only contains shell elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1aeea1bdb261048a2f951c4e14e557fcfc"></a>

### Function hasPoint

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasPoint() const

```

**Returns**:

Indication if mesh contains point elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1ad4bd4ba5896708b8c071dd45f342f1e0"></a>

### Function hasOnlyPoint

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasOnlyPoint() const

```

**Returns**:

Indication if mesh only contains point elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a24ef139add0dbf2afee4fe4fc39da778"></a>

### Function hasSolid

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasSolid() const

```

**Returns**:

Indication if mesh contains solid elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1ad731342d5494aba788fdf45406bae322"></a>

### Function hasOnlySolid

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasOnlySolid() const

```

**Returns**:

Indication if mesh only contains solid elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a0410fcda938500f26b02dd149816e693"></a>

### Function hasSkin

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasSkin() const

```

**Returns**:

Indication if mesh contains skin elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a329260f43c0178f2789082717916799c"></a>

### Function hasOnlySkin

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasOnlySkin() const

```

**Returns**:

Indication if mesh only contains skin elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a13ff7e2b797ca3b50732e0d1859f03d8"></a>

### Function hasPolygons

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasPolygons() const

```

**Returns**:

Indication if mesh contains Polygonal elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a511d93666c76398d3553fbf697172c8c"></a>

### Function hasPolyhedrons

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::MeshedRegion::hasPolyhedrons() const

```

**Returns**:

Indication if mesh contains Polyhedral elements.

**Return type**: bool

<a id="classansys-dpf-meshedregion-1a5809c805cc972f4958fab4375be4f8cb"></a>

### Function elementDescriptorByElementId

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
ansys::dpf::ElementDescriptor ansys::dpf::MeshedRegion::elementDescriptorByElementId(dp_id element_id) const

```

Get [ElementDescriptor](structansys-dpf-elementdescriptor.md#structansys-dpf-elementdescriptor) (type related information) from element id. .

**Parameters**:

- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **element\_id**

**Return type**: [ansys::dpf::ElementDescriptor](structansys-dpf-elementdescriptor.md#structansys-dpf-elementdescriptor)

<a id="classansys-dpf-meshedregion-1a04833f8ff06d70a58259eddf7e7b350c"></a>

### Function elementShape

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
ansys::dpf::elements::EShape ansys::dpf::MeshedRegion::elementShape(dp_id element_id) const

```

Get element shape.

**Parameters**:

- [dp\_id](namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **element\_id**

**Return type**: ansys::dpf::elements::EShape

<a id="classansys-dpf-meshedregion-1a9581baba0973ffff79236c95a131f62a"></a>

### Function numNodesOfElement

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
int ansys::dpf::MeshedRegion::numNodesOfElement(dp_index element_index) const

```

Get number of nodes for element at given index.

**Parameters**:

- [dp\_index](namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **element\_index**

**Return type**: int

<a id="classansys-dpf-meshedregion-1acf7de56fc6905e8da6679ea9d8df2a5e"></a>

### Function name

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
std::string ansys::dpf::MeshedRegion::name() const

```

**Returns**:

Name of the mesh.

**Return type**: std::string

<a id="classansys-dpf-meshedregion-1a76b415d07d6609006546fe28dac4d45b"></a>

### Function setName

![](https://img.shields.io/badge/-public-brightgreen "public")

```cpp
void ansys::dpf::MeshedRegion::setName(std::string const &rhs)

```

Set mesh name.

**Parameters**:

- std::string const &amp; **rhs**

**Return type**: void

<a id="classansys-dpf-meshedregion-1a1506cd74943091c868e037cd9eafde94"></a>

### Function deep\_copy

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
MeshedRegion ansys::dpf::MeshedRegion::deep_copy(ansys::dpf::Client const *const client=nullptr) const

```

Create a new [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion) on a server by copying all the data of this [MeshedRegion](classansys-dpf-meshedregion.md#classansys-dpf-meshedregion).

**Parameters**:

- [ansys::dpf::Client](classansys-dpf-client.md#classansys-dpf-client) const \*const **client** = nullptr : \[in\] [Client](classansys-dpf-client.md#classansys-dpf-client) instance designating the IP, port and protocol to use.

**Return type**: MeshedRegion

## Public static functions

<a id="classansys-dpf-meshedregion-1a597c0914caa5c5f069c74d981bb36d89"></a>

### Function emptyMeshedRegion

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-static-lightgrey "static")

```cpp
static MeshedRegion ansys::dpf::MeshedRegion::emptyMeshedRegion()

```

**Return type**: MeshedRegion