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

# ansys::dpf::MeshedRegion Class Reference

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

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::MeshedRegion:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=3d397efb532ad55ab7ee5f7350f67dcd)

## Public Member Functions

| Type | Name |
| - | - |
| | [MeshedRegion](#aba448efff0199ee26bed06ba92c6f5bb) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | [MeshedRegion](#a856308261c05f739c04f38c1b35ca072) (int id, [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) |
| | **MeshedRegion** ([MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) const &) |
| | **MeshedRegion** ([MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) &&) noexcept |
| [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) & | **operator=** ([MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) const &) |
| [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) & | **operator=** ([MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) &&) noexcept |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfNodes](#af8ad6b50708b2c201a457c5da8e819da) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfElements](#ac3a262bc236fda82374a462d7c9e240c) () const |
| [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) | [numberOfFaces](#a8af38259739409435e0de446f7ff6499) () const |
| [Unit](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Unit.md) | [lengthUnit](#aed167b03463f42d94d424797529eccad) () const |
| [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) | [nodesCoordinates](#a482ae171f257bfe86c8e567f0882caa4) () const |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) | [propField](#a198535c4c5a86ce1920cf2f5cd6c2d9d) ([PropertyType](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1PropertyType.md) const \&prop) const |
| bool | [hasPropField](#a1c6b2126a94dc0b94f01c2ae179ad44a) ([PropertyType](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1PropertyType.md) const \&prop) const |
| std::vector\< std::string > | [availablePropertyFields](#ad4dd7e2fb551172b494c559e403d902a) () const |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) | [elementTypes](#a0e89e4e209380a10140c14cd91655907) () const |
| [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) | [connectivity](#a2c75723ffc634c39b081eecd31d54309) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [nodeScoping](#ad5df08993b7c588d9565ef1c1ea4813d) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [elementScoping](#a3056a0fc6d69ca8769e33de6be0cecf0) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [faceScoping](#a4b0b3c40b12475dfafc3fa9c5bc5ac9c) () const |
| std::vector\< std::string > | [availableNamedSelections](#a3b768ab61193b7b1a6359f4ac619d1c4) () const |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [namedSelection](#a1f12d06a08e8afe8fe59c0a8d6aee779) (std::string const &[name](#acf7de56fc6905e8da6679ea9d8df2a5e)) const |
| void | [fillCursor](#a012ff219aea7e92a889a77611de00b3a) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) element\_index, [ElementCursor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1ElementCursor.md) \&cursor) const |
| void | [prepareConstruction](#aa7b984923ddd90379f08bc5b9831a95e) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) n\_nodes, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) n\_elements) |
| void | [addNode](#a2b4891674d74a792b63318c305963500) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) node\_id, std::array\< [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#acb480013bfed185b5e34a0bdcb0e3790), 3 > const \&data) |
| void | [addNode](#a3d2d3cb295d55dd3ab8d9630e03e09dc) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) node\_id, [dp\_double](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#acb480013bfed185b5e34a0bdcb0e3790) \*const data) |
| void | [addElement](#a11b6e06dfea398609fa9fb25ad4333bb) ([ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1ElementDescriptor.md) const \&descriptor, [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) elem\_id, std::vector\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) > const \&node\_indices) |
| void | [addElement](#a8bda0d11514aaf91d367d88b700f05c7) (ansys::dpf::elements::EShape shape, [dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) elem\_id, std::vector\< [dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) > const \&node\_indices) |
| void | [setLengthUnit](#a638d38d0400a6c64b85082a4c4beb105) ([Unit](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Unit.md) const \&unit) |
| void | [setNamedSelectionScoping](#afdcea89a088a5a05244abfa8a2457040) (std::string const &[name](#acf7de56fc6905e8da6679ea9d8df2a5e), [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) scoping) |
| void | [setPropertyField](#a2bc27437f9025696a0d07072bd4bafe1) (std::string const &[name](#acf7de56fc6905e8da6679ea9d8df2a5e), [PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) property\_field) |
| void | [setConnectivity](#a4f7720c8b112b1d02eedcc4564986232) ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) [connectivity](#a2c75723ffc634c39b081eecd31d54309)) |
| void | [setElementTypes](#a6521976e1c6a8ed3a1357c979cd380aa) ([PropertyField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1PropertyField.md) element\_types) |
| void | [setNodesCoordinates](#ad5fbd4c5a82f47d45eba62536cba68a1) ([Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) coordinates) |
| bool | [hasBeam](#a4c0e5dd26ae85f7f9817848b6cf0e050) () const |
| bool | [hasOnlyBeam](#a4d5721fffae74a36f5df08f17b3e8814) () const |
| bool | [hasShell](#a606ffd0951d9f75cc632754a8619153c) () const |
| bool | [hasOnlyShell](#a07f2c499670bb730703defe33d7a2366) () const |
| bool | [hasPoint](#aeea1bdb261048a2f951c4e14e557fcfc) () const |
| bool | [hasOnlyPoint](#ad4bd4ba5896708b8c071dd45f342f1e0) () const |
| bool | [hasSolid](#a24ef139add0dbf2afee4fe4fc39da778) () const |
| bool | [hasOnlySolid](#ad731342d5494aba788fdf45406bae322) () const |
| bool | [hasSkin](#a0410fcda938500f26b02dd149816e693) () const |
| bool | [hasOnlySkin](#a329260f43c0178f2789082717916799c) () const |
| bool | [hasPolygons](#a13ff7e2b797ca3b50732e0d1859f03d8) () const |
| bool | [hasPolyhedrons](#a511d93666c76398d3553fbf697172c8c) () const |
| [ansys::dpf::ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1ElementDescriptor.md) | [elementDescriptorByElementId](#a5809c805cc972f4958fab4375be4f8cb) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) element\_id) const |
| ansys::dpf::elements::EShape | [elementShape](#a04833f8ff06d70a58259eddf7e7b350c) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) element\_id) const |
| int | [numNodesOfElement](#a9581baba0973ffff79236c95a131f62a) ([dp\_index](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#a417548d1b705a9ba54ba9429afe68920) element\_index) const |
| std::string | [name](#acf7de56fc6905e8da6679ea9d8df2a5e) () const |
| void | [setName](#a76b415d07d6609006546fe28dac4d45b) (std::string const \&rhs) |
| [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) | [deep\_copy](#acdd5697fc951caef900b5ea145d79cbf) ([ansys::dpf::Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) const \*const client) const |
| [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) | [deep\_copy](#a0c89c703a65b7523b2c5f89bad07e093) () const |

> [accordion] Public Member Functions inherited from ansys::dpf::DpfTypes
>
> Public Member Functions inherited from [ansys::dpf::DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md)
>
> | Type | Name |
> | - | - |
> | virtual bool | [empty](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a39cd546c42518e2332be8f287db95459) () const |
> | virtual bool | [hasInternalObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#ae198f89868d85c7db6dc1a934a1d3c15) () const |
> | virtual std::string | [describe](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9977945710983bc03d2940fa007847b2) () const |
> | so::API const \* | [callAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aea34d37e0c080126eff70db34bf46597) () const |
> | bool | [isOnCommonAPI](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a9f9789ff61cc9d400a2a344830706b73) () const |
> | bool | [getClient](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) \&client) const |
> | bool | [hasBeenMovedLocally](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#a1a5634202c15404b6b24e8f50e51cb66) () const |
> | bool | [isSameObject](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfTypes.md) const \&rhs) const |

## Static Public Member Functions

| Type | Name |
| - | - |
|  static [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) | **emptyMeshedRegion** () |

## Detailed Description

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

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/AveragingTest_8cpp-example.md), [CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md), and [WorkflowExamples.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/WorkflowExamples_8cpp-example.md).

## Constructor & Destructor Documentation

### MeshedRegion() \[1/2]

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

Create a new meshed region on a server.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

### MeshedRegion() \[2/2]

```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/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) on a server.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | id | Id of the [MeshedRegion](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshedRegion.md) object on the server's database. |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

## Member Function Documentation

### addElement() \[1/2]

```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**

| Direction | Name | Description |
| - | - | - |
| \[in] | shape | Shape of the element. |
| \[in] | elem\_id | Id of element. |
| \[in] | node\_indices | Vector of node ids of element. |

### addElement() \[2/2]

```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**

| Direction | Name | Description |
| - | - | - |
| \[in] | descriptor | Description of element. |
| \[in] | elem\_id | Id of element. |
| \[in] | node\_indices | Vector of node ids of element. |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### addNode() \[1/2]

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

Add node to mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | node\_id | Id of node. |
| \[in] | data | XYZ coordinates of node. |

### addNode() \[2/2]

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

Add node to mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | node\_id | Id of node. |
| \[in] | data | XYZ coordinates of node. |

**Examples**

[AveragingTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/AveragingTest_8cpp-example.md), [DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### availableNamedSelections()

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

**Returns**

Vector of named selections withing mesh.

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md), and [WorkflowExamples.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/WorkflowExamples_8cpp-example.md).

### availablePropertyFields()

```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/2025-r1/structansys_1_1dpf_1_1property__types.md) for examples of available types.

### connectivity()

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

**Returns**

Property field describing element connectivity for mesh.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).

### deep\_copy() \[1/2]

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

Make a deep copy locally.

### deep\_copy() \[2/2]

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

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | client | [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md) instance designating the IP, port and protocol to use. |

**Examples**

[DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### elementDescriptorByElementId()

```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/2025-r1/structansys_1_1dpf_1_1ElementDescriptor.md) (type related information) from element id. .

### elementScoping()

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

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) describing elements of mesh.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### elementShape()

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

Get element shape.

### elementTypes()

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

**Returns**

Property field describing element types within mesh.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md).

### faceScoping()

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

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) describing faces of mesh.

### fillCursor()

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

Get a cursor for given element.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_index | Index of element within mesh for which to get cursor. |
| \[out] | cursor | Cursor for given element. |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md).

### hasBeam()

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

**Returns**

Indication if mesh contains beam elements.

### hasOnlyBeam()

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

**Returns**

Indication if mesh only contains beam elements.

### hasOnlyPoint()

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

**Returns**

Indication if mesh only contains point elements.

### hasOnlyShell()

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

**Returns**

Indication if mesh only contains shell elements.

### hasOnlySkin()

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

**Returns**

Indication if mesh only contains skin elements.

### hasOnlySolid()

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

**Returns**

Indication if mesh only contains solid elements.

### hasPoint()

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

**Returns**

Indication if mesh contains point elements.

### hasPolygons()

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

**Returns**

Indication if mesh contains Polygonal elements.

### hasPolyhedrons()

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

**Returns**

Indication if mesh contains Polyhedral elements.

### hasPropField()

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

**Returns**

Indication that property type exists.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | prop | Property type of which to check existence. |

### hasShell()

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

**Returns**

Indication if mesh contains shell elements.

### hasSkin()

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

**Returns**

Indication if mesh contains skin elements.

### hasSolid()

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

**Returns**

Indication if mesh contains solid elements.

### lengthUnit()

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

**Returns**

Length unit for mesh.

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### name()

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

**Returns**

Name of the mesh.

### namedSelection()

```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/2025-r1/classansys_1_1dpf_1_1Scoping.md) for given named selection.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | Name of which to get scoping. |

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).

### nodesCoordinates()

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

**Returns**

[Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) containing mesh node coordinates.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).

### nodeScoping()

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

**Returns**

[Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) describing nodes of mesh.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### numberOfElements()

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

**Returns**

Number of elements in mesh.

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).

### numberOfFaces()

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

**Returns**

Number of faces in mesh.

### numberOfNodes()

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

**Returns**

Number of nodes in mesh.

**Examples**

[CompleteRST.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/CompleteRST_8cpp-example.md), [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/ModelTest_8cpp-example.md).

### numNodesOfElement()

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

Get number of nodes for element at given index.

### prepareConstruction()

```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**

| Direction | Name | Description |
| - | - | - |
| \[in] | n\_nodes | Expected number of nodes within mesh. |
| \[in] | n\_elements | Expected number of elements within mesh. |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataApis_8cpp-example.md), and [DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### propField()

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

**Returns**

Property field given by property type.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | prop | Property type of which to get property field. |

### setConnectivity()

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

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | connectivity | Connectivity to set. |

### setElementTypes()

```cpp theme={null}
void ansys::dpf::MeshedRegion::setElementTypes(PropertyField element_types)
```

Set element types property field.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_types | Element types data to set.. |

### setLengthUnit()

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

Set length unit for mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | unit | Length unit for mesh. |

**Examples**

[DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### setName()

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

Set mesh name.

### setNamedSelectionScoping()

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

Set a named selection scoping for mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | Named selection name. |
| \[in] | scoping | [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) to set. |

### setNodesCoordinates()

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

Set a field for mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | coordinates | [Field](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Field.md) to set. |

**Examples**

[DataExport.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/DataExport_8cpp-example.md).

### setPropertyField()

```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**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | Property name: |

**See also**

common\_property\_names.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | property\_field | Property field to set. |
