> ## 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.

# Class ansys::dpf::MeshedRegion

![][C++]
![][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](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpftypes.md)

## Members

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

## Friends

## Public functions

### Function MeshedRegion

![][public]

```cpp theme={null}
ansys::dpf::MeshedRegion::MeshedRegion()
```

**Return type**:

### Function MeshedRegion

![][public]

```cpp theme={null}
ansys::dpf::MeshedRegion::MeshedRegion(Client const *const client)
```

Create a new meshed region on a server.

**Parameters**:

* [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client**: \[in] [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) instance designating the IP, port and protocol to use.

**Return type**:

### Function MeshedRegion

![][public]

```cpp theme={null}
ansys::dpf::MeshedRegion::MeshedRegion(int id, Client const *const client)
```

Retrieve an existing instance of [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md) on a server.

**Parameters**:

* int **id**: \[in] Id of the [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md) object on the server's database.
* [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client**: \[in] [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) instance designating the IP, port and protocol to use.

**Return type**:

### Function \~MeshedRegion

![][public]

```cpp theme={null}
virtual ansys::dpf::MeshedRegion::~MeshedRegion()
```

**Return type**:

### Function MeshedRegion

![][public]

```cpp theme={null}
ansys::dpf::MeshedRegion::MeshedRegion(MeshedRegion const &)
```

**Parameters**:

* MeshedRegion const &

**Return type**:

### Function MeshedRegion

![][public]

```cpp theme={null}
ansys::dpf::MeshedRegion::MeshedRegion(MeshedRegion &&) noexcept
```

**Parameters**:

* MeshedRegion &&

**Return type**:

### Function operator=

![][public]

```cpp theme={null}
MeshedRegion & ansys::dpf::MeshedRegion::operator=(MeshedRegion const &)
```

**Parameters**:

* MeshedRegion const &

**Return type**: MeshedRegion &

### Function operator=

![][public]

```cpp theme={null}
MeshedRegion & ansys::dpf::MeshedRegion::operator=(MeshedRegion &&) noexcept
```

**Parameters**:

* MeshedRegion &&

**Return type**: MeshedRegion &

### Function numberOfNodes

![][public]
![][const]

```cpp theme={null}
dp_int ansys::dpf::MeshedRegion::numberOfNodes() const
```

**Returns**:

Number of nodes in mesh.

**Return type**: [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

### Function numberOfElements

![][public]
![][const]

```cpp theme={null}
dp_int ansys::dpf::MeshedRegion::numberOfElements() const
```

**Returns**:

Number of elements in mesh.

**Return type**: [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

### Function numberOfFaces

![][public]
![][const]

```cpp theme={null}
dp_int ansys::dpf::MeshedRegion::numberOfFaces() const
```

**Returns**:

Number of faces in mesh.

**Return type**: [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0)

### Function lengthUnit

![][public]
![][const]

```cpp theme={null}
Unit ansys::dpf::MeshedRegion::lengthUnit() const
```

**Returns**:

Length unit for mesh.

**Return type**: [Unit](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-unit.md)

### Function nodesCoordinates

![][public]
![][const]

```cpp theme={null}
Field ansys::dpf::MeshedRegion::nodesCoordinates() const
```

**Returns**:

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-field.md) containing mesh node coordinates.

**Return type**: Field

### Function propField

![][public]
![][const]

```cpp theme={null}
PropertyField ansys::dpf::MeshedRegion::propField(PropertyType const &prop) const
```

**Returns**:

Property field given by property type.

**Parameters**:

* [PropertyType](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-propertytype.md) const & **prop**: \[in] Property type of which to get property field.

**Return type**: PropertyField

### Function hasPropField

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasPropField(PropertyType const &prop) const
```

**Returns**:

Indication that property type exists.

**Parameters**:

* [PropertyType](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-propertytype.md) const & **prop**: \[in] Property type of which to check existence.

**Return type**: bool

### Function availablePropertyFields

![][public]
![][const]

```cpp theme={null}
std::vector< std::string > ansys::dpf::MeshedRegion::availablePropertyFields() const
```

**Returns**:

Vector of property fields withing mesh. See [property\_types](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-property-types.md) for examples of available types.

**Return type**: std::vector\< std::string >

### Function elementTypes

![][public]
![][const]

```cpp theme={null}
PropertyField ansys::dpf::MeshedRegion::elementTypes() const
```

**Returns**:

Property field describing element types within mesh.

**Return type**: PropertyField

### Function connectivity

![][public]
![][const]

```cpp theme={null}
PropertyField ansys::dpf::MeshedRegion::connectivity() const
```

**Returns**:

Property field describing element connectivity for mesh.

**Return type**: PropertyField

### Function nodeScoping

![][public]
![][const]

```cpp theme={null}
Scoping ansys::dpf::MeshedRegion::nodeScoping() const
```

**Returns**:

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) describing nodes of mesh.

**Return type**: [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function elementScoping

![][public]
![][const]

```cpp theme={null}
Scoping ansys::dpf::MeshedRegion::elementScoping() const
```

**Returns**:

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) describing elements of mesh.

**Return type**: [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function faceScoping

![][public]
![][const]

```cpp theme={null}
Scoping ansys::dpf::MeshedRegion::faceScoping() const
```

**Returns**:

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) describing faces of mesh.

**Return type**: [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function availableNamedSelections

![][public]
![][const]

```cpp theme={null}
std::vector< std::string > ansys::dpf::MeshedRegion::availableNamedSelections() const
```

**Returns**:

Vector of named selections withing mesh.

**Return type**: std::vector\< std::string >

### Function namedSelection

![][public]
![][const]

```cpp theme={null}
Scoping ansys::dpf::MeshedRegion::namedSelection(std::string const &name) const
```

**Returns**:

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) for given named selection.

**Parameters**:

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

**Return type**: [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function fillCursor

![][public]
![][const]

```cpp theme={null}
void ansys::dpf::MeshedRegion::fillCursor(dp_index element_index, ElementCursor &cursor) const
```

Get a cursor for given element.

**Parameters**:

* [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **element\_index**: \[in] Index of element within mesh for which to get cursor.
* [ElementCursor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-elementcursor.md) & **cursor**: \[out] Cursor for given element.

**Return type**: void

### Function prepareConstruction

![][public]

```cpp theme={null}
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](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **n\_nodes**: \[in] Expected number of nodes within mesh.
* [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **n\_elements**: \[in] Expected number of elements within mesh.

**Return type**: void

### Function addNode

![][public]

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

Add node to mesh.

**Parameters**:

* [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **node\_id**: \[in] Id of node.
* std::array\< [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1acb480013bfed185b5e34a0bdcb0e3790), 3 > const & **data**: \[in] XYZ coordinates of node.

**Return type**: void

### Function addNode

![][public]

```cpp theme={null}
void ansys::dpf::MeshedRegion::addNode(dp_id node_id, dp_double *const data)
```

Add node to mesh.

**Parameters**:

* [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **node\_id**: \[in] Id of node.
* [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1acb480013bfed185b5e34a0bdcb0e3790) \*const **data**: \[in] XYZ coordinates of node.

**Return type**: void

### Function addElement

![][public]

```cpp theme={null}
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](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-elementdescriptor.md) const & **descriptor**: \[in] Description of element.
* [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **elem\_id**: \[in] Id of element.
* std::vector\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) > const & **node\_indices**: \[in] Vector of node ids of element.

**Return type**: void

### Function addElement

![][public]

```cpp theme={null}
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](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **elem\_id**: \[in] Id of element.
* std::vector\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) > const & **node\_indices**: \[in] Vector of node ids of element.

**Return type**: void

### Function setLengthUnit

![][public]

```cpp theme={null}
void ansys::dpf::MeshedRegion::setLengthUnit(Unit const &unit)
```

Set length unit for mesh.

**Parameters**:

* [Unit](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-unit.md) const & **unit**: \[in] Length unit for mesh.

**Return type**: void

### Function setNamedSelectionScoping

![][public]

```cpp theme={null}
void ansys::dpf::MeshedRegion::setNamedSelectionScoping(std::string const &name, Scoping scoping)
```

Set a named selection scoping for mesh.

**Parameters**:

* std::string const & **name**: \[in] Named selection name.
* [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) **scoping**: \[in] [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) to set.

**Return type**: void

### Function setPropertyField

![][public]

```cpp theme={null}
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 & **name**: \[in] Property name:

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

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

**Return type**: void

### Function setConnectivity

![][public]

```cpp theme={null}
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

### Function setElementTypes

![][public]

```cpp theme={null}
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

### Function setNodesCoordinates

![][public]

```cpp theme={null}
void ansys::dpf::MeshedRegion::setNodesCoordinates(Field coordinates)
```

Set a field for mesh.

**Parameters**:

* Field **coordinates**: \[in] [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-field.md) to set.

**Return type**: void

### Function hasBeam

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasBeam() const
```

**Returns**:

Indication if mesh contains beam elements.

**Return type**: bool

### Function hasOnlyBeam

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasOnlyBeam() const
```

**Returns**:

Indication if mesh only contains beam elements.

**Return type**: bool

### Function hasShell

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasShell() const
```

**Returns**:

Indication if mesh contains shell elements.

**Return type**: bool

### Function hasOnlyShell

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasOnlyShell() const
```

**Returns**:

Indication if mesh only contains shell elements.

**Return type**: bool

### Function hasPoint

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasPoint() const
```

**Returns**:

Indication if mesh contains point elements.

**Return type**: bool

### Function hasOnlyPoint

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasOnlyPoint() const
```

**Returns**:

Indication if mesh only contains point elements.

**Return type**: bool

### Function hasSolid

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasSolid() const
```

**Returns**:

Indication if mesh contains solid elements.

**Return type**: bool

### Function hasOnlySolid

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasOnlySolid() const
```

**Returns**:

Indication if mesh only contains solid elements.

**Return type**: bool

### Function hasSkin

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasSkin() const
```

**Returns**:

Indication if mesh contains skin elements.

**Return type**: bool

### Function hasOnlySkin

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasOnlySkin() const
```

**Returns**:

Indication if mesh only contains skin elements.

**Return type**: bool

### Function hasPolygons

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasPolygons() const
```

**Returns**:

Indication if mesh contains Polygonal elements.

**Return type**: bool

### Function hasPolyhedrons

![][public]
![][const]

```cpp theme={null}
bool ansys::dpf::MeshedRegion::hasPolyhedrons() const
```

**Returns**:

Indication if mesh contains Polyhedral elements.

**Return type**: bool

### Function elementDescriptorByElementId

![][public]
![][const]

```cpp theme={null}
ansys::dpf::ElementDescriptor ansys::dpf::MeshedRegion::elementDescriptorByElementId(dp_id element_id) const
```

Get [ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-elementdescriptor.md) (type related information) from element id. .

**Parameters**:

* [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **element\_id**

**Return type**: [ansys::dpf::ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-elementdescriptor.md)

### Function elementShape

![][public]
![][const]

```cpp theme={null}
ansys::dpf::elements::EShape ansys::dpf::MeshedRegion::elementShape(dp_id element_id) const
```

Get element shape.

**Parameters**:

* [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1ab4574c9af3f2bb8011da7d1f4c8da20e) **element\_id**

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

### Function numNodesOfElement

![][public]
![][const]

```cpp theme={null}
int ansys::dpf::MeshedRegion::numNodesOfElement(dp_index element_index) const
```

Get number of nodes for element at given index.

**Parameters**:

* [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a417548d1b705a9ba54ba9429afe68920) **element\_index**

**Return type**: int

### Function name

![][public]
![][const]

```cpp theme={null}
std::string ansys::dpf::MeshedRegion::name() const
```

**Returns**:

Name of the mesh.

**Return type**: std::string

### Function setName

![][public]

```cpp theme={null}
void ansys::dpf::MeshedRegion::setName(std::string const &rhs)
```

Set mesh name.

**Parameters**:

* std::string const & **rhs**

**Return type**: void

### Function deep\_copy

![][public]
![][const]

```cpp theme={null}
MeshedRegion ansys::dpf::MeshedRegion::deep_copy(ansys::dpf::Client const *const client=nullptr) const
```

Create a new [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md) on a server by copying all the data of this [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-meshedregion.md).

**Parameters**:

* [ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) const \*const **client** = nullptr : \[in] [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-client.md) instance designating the IP, port and protocol to use.

**Return type**: MeshedRegion

## Public static functions

### Function emptyMeshedRegion

![][public]
![][static]

```cpp theme={null}
static MeshedRegion ansys::dpf::MeshedRegion::emptyMeshedRegion()
```

**Return type**: MeshedRegion

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

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

[static]: https://img.shields.io/badge/-static-lightgrey "static"
