    

 ## On this page

  

 

 # ansys::dpf::MeshedRegion Class Reference

 Last update: 16.07.2025 

Holds the mesh for a given region (body, faces, skin, ...) [More...](classansys_1_1dpf_1_1MeshedRegion.xhtml#details)

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::MeshedRegion:

 ![](/sites/default/files/migrate-content/dpf_cpp_client_library_2023_r2/classansys_1_1dpf_1_1MeshedRegion.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml#aba448efff0199ee26bed06ba92c6f5bb) ([Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client)  [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml#a856308261c05f739c04f38c1b35ca072) (int id, [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client) <a id="a5707eb2666551a4af4f27403dc1b69da" name="a5707eb2666551a4af4f27403dc1b69da"></a> **MeshedRegion** ([MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) const &amp;) <a id="a7312e436afe7534b74c7b4c623da4974" name="a7312e436afe7534b74c7b4c623da4974"></a> **MeshedRegion** ([MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) &amp;&amp;) <a id="a69670c1f8a5ff252d4377429928f7f9e" name="a69670c1f8a5ff252d4377429928f7f9e"></a>[MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) &amp; **operator=** ([MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) const &amp;) <a id="ae26befa94dff61f0f30f9ed7a5810d1f" name="ae26befa94dff61f0f30f9ed7a5810d1f"></a>[MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) &amp; **operator=** ([MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) &amp;&amp;) [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) [numberOfNodes](classansys_1_1dpf_1_1MeshedRegion.xhtml#af8ad6b50708b2c201a457c5da8e819da) () const [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) [numberOfElements](classansys_1_1dpf_1_1MeshedRegion.xhtml#ac3a262bc236fda82374a462d7c9e240c) () const [Unit](classansys_1_1dpf_1_1Unit.xhtml) [lengthUnit](classansys_1_1dpf_1_1MeshedRegion.xhtml#aed167b03463f42d94d424797529eccad) () const [Field](classansys_1_1dpf_1_1Field.xhtml) [nodesCoordinates](classansys_1_1dpf_1_1MeshedRegion.xhtml#a482ae171f257bfe86c8e567f0882caa4) () const [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) [propField](classansys_1_1dpf_1_1MeshedRegion.xhtml#a198535c4c5a86ce1920cf2f5cd6c2d9d) ([PropertyType](structansys_1_1dpf_1_1PropertyType.xhtml) const &amp;prop) const bool [hasPropField](classansys_1_1dpf_1_1MeshedRegion.xhtml#a1c6b2126a94dc0b94f01c2ae179ad44a) ([PropertyType](structansys_1_1dpf_1_1PropertyType.xhtml) const &amp;prop) const std::vector&lt; std::string &gt; [availablePropertyFields](classansys_1_1dpf_1_1MeshedRegion.xhtml#ad4dd7e2fb551172b494c559e403d902a) () const [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) [elementTypes](classansys_1_1dpf_1_1MeshedRegion.xhtml#a0e89e4e209380a10140c14cd91655907) () const [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) [connectivity](classansys_1_1dpf_1_1MeshedRegion.xhtml#a2c75723ffc634c39b081eecd31d54309) () const [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [nodeScoping](classansys_1_1dpf_1_1MeshedRegion.xhtml#ad5df08993b7c588d9565ef1c1ea4813d) () const [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [elementScoping](classansys_1_1dpf_1_1MeshedRegion.xhtml#a3056a0fc6d69ca8769e33de6be0cecf0) () const [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [faceScoping](classansys_1_1dpf_1_1MeshedRegion.xhtml#a4b0b3c40b12475dfafc3fa9c5bc5ac9c) () const std::vector&lt; std::string &gt; [availableNamedSelections](classansys_1_1dpf_1_1MeshedRegion.xhtml#a3b768ab61193b7b1a6359f4ac619d1c4) () const [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [namedSelection](classansys_1_1dpf_1_1MeshedRegion.xhtml#a1f12d06a08e8afe8fe59c0a8d6aee779) (std::string const &amp;[name](classansys_1_1dpf_1_1MeshedRegion.xhtml#acf7de56fc6905e8da6679ea9d8df2a5e)) const void [fillCursor](classansys_1_1dpf_1_1MeshedRegion.xhtml#a012ff219aea7e92a889a77611de00b3a) ([dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) element\_index, [ElementCursor](classansys_1_1dpf_1_1ElementCursor.xhtml) &amp;cursor) const void [prepareConstruction](classansys_1_1dpf_1_1MeshedRegion.xhtml#aa7b984923ddd90379f08bc5b9831a95e) ([dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) n\_nodes, [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) n\_elements) void [addNode](classansys_1_1dpf_1_1MeshedRegion.xhtml#a2b4891674d74a792b63318c305963500) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) node\_id, std::array&lt; [dp\_double](namespaceansys_1_1dpf.xhtml#acb480013bfed185b5e34a0bdcb0e3790), 3 &gt; const &amp;data) void [addNode](classansys_1_1dpf_1_1MeshedRegion.xhtml#a3d2d3cb295d55dd3ab8d9630e03e09dc) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) node\_id, [dp\_double](namespaceansys_1_1dpf.xhtml#acb480013bfed185b5e34a0bdcb0e3790) \*const data) void [addElement](classansys_1_1dpf_1_1MeshedRegion.xhtml#a11b6e06dfea398609fa9fb25ad4333bb) ([ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) const &amp;descriptor, [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) elem\_id, std::vector&lt; [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) &gt; const &amp;node\_indices) void [addElement](classansys_1_1dpf_1_1MeshedRegion.xhtml#a8bda0d11514aaf91d367d88b700f05c7) (ansys::dpf::elements::EShape shape, [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) elem\_id, std::vector&lt; [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) &gt; const &amp;node\_indices) void [setLengthUnit](classansys_1_1dpf_1_1MeshedRegion.xhtml#a638d38d0400a6c64b85082a4c4beb105) ([Unit](classansys_1_1dpf_1_1Unit.xhtml) const &amp;unit) void [setNamedSelectionScoping](classansys_1_1dpf_1_1MeshedRegion.xhtml#afdcea89a088a5a05244abfa8a2457040) (std::string const &amp;[name](classansys_1_1dpf_1_1MeshedRegion.xhtml#acf7de56fc6905e8da6679ea9d8df2a5e), [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) scoping) void [setPropertyField](classansys_1_1dpf_1_1MeshedRegion.xhtml#a2bc27437f9025696a0d07072bd4bafe1) (std::string const &amp;[name](classansys_1_1dpf_1_1MeshedRegion.xhtml#acf7de56fc6905e8da6679ea9d8df2a5e), [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) property\_field) void [setConnectivity](classansys_1_1dpf_1_1MeshedRegion.xhtml#a4f7720c8b112b1d02eedcc4564986232) ([PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) [connectivity](classansys_1_1dpf_1_1MeshedRegion.xhtml#a2c75723ffc634c39b081eecd31d54309)) void [setElementTypes](classansys_1_1dpf_1_1MeshedRegion.xhtml#a6521976e1c6a8ed3a1357c979cd380aa) ([PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) element\_types) void [setNodesCoordinates](classansys_1_1dpf_1_1MeshedRegion.xhtml#ad5fbd4c5a82f47d45eba62536cba68a1) ([Field](classansys_1_1dpf_1_1Field.xhtml) coordinates) bool [hasBeam](classansys_1_1dpf_1_1MeshedRegion.xhtml#a4c0e5dd26ae85f7f9817848b6cf0e050) () const bool [hasOnlyBeam](classansys_1_1dpf_1_1MeshedRegion.xhtml#a4d5721fffae74a36f5df08f17b3e8814) () const bool [hasShell](classansys_1_1dpf_1_1MeshedRegion.xhtml#a606ffd0951d9f75cc632754a8619153c) () const bool [hasOnlyShell](classansys_1_1dpf_1_1MeshedRegion.xhtml#a07f2c499670bb730703defe33d7a2366) () const bool [hasPoint](classansys_1_1dpf_1_1MeshedRegion.xhtml#aeea1bdb261048a2f951c4e14e557fcfc) () const bool [hasOnlyPoint](classansys_1_1dpf_1_1MeshedRegion.xhtml#ad4bd4ba5896708b8c071dd45f342f1e0) () const bool [hasSolid](classansys_1_1dpf_1_1MeshedRegion.xhtml#a24ef139add0dbf2afee4fe4fc39da778) () const bool [hasOnlySolid](classansys_1_1dpf_1_1MeshedRegion.xhtml#ad731342d5494aba788fdf45406bae322) () const bool [hasSkin](classansys_1_1dpf_1_1MeshedRegion.xhtml#a0410fcda938500f26b02dd149816e693) () const bool [hasOnlySkin](classansys_1_1dpf_1_1MeshedRegion.xhtml#a329260f43c0178f2789082717916799c) () const bool [hasPolygons](classansys_1_1dpf_1_1MeshedRegion.xhtml#a13ff7e2b797ca3b50732e0d1859f03d8) () const bool [hasPolyhedrons](classansys_1_1dpf_1_1MeshedRegion.xhtml#a511d93666c76398d3553fbf697172c8c) () const [ansys::dpf::ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) [elementDescriptorByElementId](classansys_1_1dpf_1_1MeshedRegion.xhtml#a5809c805cc972f4958fab4375be4f8cb) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) element\_id) const ansys::dpf::elements::EShape [elementShape](classansys_1_1dpf_1_1MeshedRegion.xhtml#a04833f8ff06d70a58259eddf7e7b350c) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) element\_id) const int [numNodesOfElement](classansys_1_1dpf_1_1MeshedRegion.xhtml#a9581baba0973ffff79236c95a131f62a) ([dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) element\_index) const std::string [name](classansys_1_1dpf_1_1MeshedRegion.xhtml#acf7de56fc6905e8da6679ea9d8df2a5e) () const void [setName](classansys_1_1dpf_1_1MeshedRegion.xhtml#a76b415d07d6609006546fe28dac4d45b) (std::string const &amp;rhs) [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) [deep\_copy](classansys_1_1dpf_1_1MeshedRegion.xhtml#acdd5697fc951caef900b5ea145d79cbf) ([ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client) const [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) [deep\_copy](classansys_1_1dpf_1_1MeshedRegion.xhtml#a0c89c703a65b7523b2c5f89bad07e093) () const ![-](/sites/default/files/migrate-content/dpf_cpp_client_library_2023_r2/closed.png) Public Member Functions inherited from [ansys::dpf::DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml)virtual bool [empty](classansys_1_1dpf_1_1DpfTypes.xhtml#a39cd546c42518e2332be8f287db95459) () const virtual std::string [describe](classansys_1_1dpf_1_1DpfTypes.xhtml#a9977945710983bc03d2940fa007847b2) () const so::API const \* [callAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#aea34d37e0c080126eff70db34bf46597) () const bool [isOnCommonAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#a9f9789ff61cc9d400a2a344830706b73) () const bool [getClient](classansys_1_1dpf_1_1DpfTypes.xhtml#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](classansys_1_1dpf_1_1Client.xhtml) &amp;client) const bool [hasBeenMovedLocally](classansys_1_1dpf_1_1DpfTypes.xhtml#a1a5634202c15404b6b24e8f50e51cb66) () const bool [isSameObject](classansys_1_1dpf_1_1DpfTypes.xhtml#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml) const &amp;rhs) const ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

<a id="a597c0914caa5c5f069c74d981bb36d89" name="a597c0914caa5c5f069c74d981bb36d89"></a>static [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) **emptyMeshedRegion** () <a id="details" name="details"></a>## 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](AveragingTest_8cpp-example.xhtml#_a16), [CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#_a7), [DataApis.cpp](DataApis_8cpp-example.xhtml#_a46), [DataExport.cpp](DataExport_8cpp-example.xhtml#_a2), [ModelTest.cpp](ModelTest_8cpp-example.xhtml#_a1), and [WorkflowExamples.cpp](WorkflowExamples_8cpp-example.xhtml#_a11).

## Constructor &amp; Destructor Documentation

<a id="aba448efff0199ee26bed06ba92c6f5bb" name="aba448efff0199ee26bed06ba92c6f5bb"></a>## [◆ ](#aba448efff0199ee26bed06ba92c6f5bb)MeshedRegion() \[1/2\]

 ansys::dpf::MeshedRegion::MeshedRegion  ( [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*) 

Create a new meshed region on a server.

Parameters \[in\]client[Client](classansys_1_1dpf_1_1Client.xhtml) instance designating the IP, port and protocol to use. 



<a id="a856308261c05f739c04f38c1b35ca072" name="a856308261c05f739c04f38c1b35ca072"></a>## [◆ ](#a856308261c05f739c04f38c1b35ca072)MeshedRegion() \[2/2\]

 ansys::dpf::MeshedRegion::MeshedRegion  ( int  *id*,    [Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*   ) 

Retrieve an existing instance of [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml "Holds the mesh for a given region (body, faces, skin, ...)") on a server.

Parameters \[in\]idId of the [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml "Holds the mesh for a given region (body, faces, skin, ...)") object on the server's database. \[in\]client[Client](classansys_1_1dpf_1_1Client.xhtml) instance designating the IP, port and protocol to use. 



## Member Function Documentation

<a id="a8bda0d11514aaf91d367d88b700f05c7" name="a8bda0d11514aaf91d367d88b700f05c7"></a>## [◆ ](#a8bda0d11514aaf91d367d88b700f05c7)addElement() \[1/2\]

 void ansys::dpf::MeshedRegion::addElement  ( ansys::dpf::elements::EShape  *shape*,    [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *elem\_id*,    std::vector&lt; [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) &gt; const &amp;  *node\_indices*   ) 

Add element to mesh.

Parameters \[in\]shapeShape of the element. \[in\]elem\_idId of element. \[in\]node\_indicesVector of node ids of element. 



<a id="a11b6e06dfea398609fa9fb25ad4333bb" name="a11b6e06dfea398609fa9fb25ad4333bb"></a>## [◆ ](#a11b6e06dfea398609fa9fb25ad4333bb)addElement() \[2/2\]

 void ansys::dpf::MeshedRegion::addElement  ( [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) const &amp;  *descriptor*,    [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *elem\_id*,    std::vector&lt; [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) &gt; const &amp;  *node\_indices*   ) 

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

Parameters \[in\]descriptorDescription of element. \[in\]elem\_idId of element. \[in\]node\_indicesVector of node ids of element. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a52), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a10).



<a id="a3d2d3cb295d55dd3ab8d9630e03e09dc" name="a3d2d3cb295d55dd3ab8d9630e03e09dc"></a>## [◆ ](#a3d2d3cb295d55dd3ab8d9630e03e09dc)addNode() \[1/2\]

 void ansys::dpf::MeshedRegion::addNode  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *node\_id*,    [dp\_double](namespaceansys_1_1dpf.xhtml#acb480013bfed185b5e34a0bdcb0e3790) \*const  *data*   ) 

Add node to mesh.

Parameters \[in\]node\_idId of node. \[in\]dataXYZ coordinates of node. 



<a id="a2b4891674d74a792b63318c305963500" name="a2b4891674d74a792b63318c305963500"></a>## [◆ ](#a2b4891674d74a792b63318c305963500)addNode() \[2/2\]

 void ansys::dpf::MeshedRegion::addNode  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *node\_id*,    std::array&lt; [dp\_double](namespaceansys_1_1dpf.xhtml#acb480013bfed185b5e34a0bdcb0e3790), 3 &gt; const &amp;  *data*   ) 

Add node to mesh.

Parameters \[in\]node\_idId of node. \[in\]dataXYZ coordinates of node. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a51), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a9).



<a id="a3b768ab61193b7b1a6359f4ac619d1c4" name="a3b768ab61193b7b1a6359f4ac619d1c4"></a>## [◆ ](#a3b768ab61193b7b1a6359f4ac619d1c4)availableNamedSelections()

 std::vector&lt; std::string &gt; ansys::dpf::MeshedRegion::availableNamedSelections  ( )  const

ReturnsVector of named selections withing mesh. Examples[CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#a15), [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a14), and [WorkflowExamples.cpp](WorkflowExamples_8cpp-example.xhtml#a12).



<a id="ad4dd7e2fb551172b494c559e403d902a" name="ad4dd7e2fb551172b494c559e403d902a"></a>## [◆ ](#ad4dd7e2fb551172b494c559e403d902a)availablePropertyFields()

 std::vector&lt; std::string &gt; ansys::dpf::MeshedRegion::availablePropertyFields  ( )  const

ReturnsVector of property fields withing mesh. See [property\_types](structansys_1_1dpf_1_1property__types.xhtml) for examples of available types. 



<a id="a2c75723ffc634c39b081eecd31d54309" name="a2c75723ffc634c39b081eecd31d54309"></a>## [◆ ](#a2c75723ffc634c39b081eecd31d54309)connectivity()

 [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) ansys::dpf::MeshedRegion::connectivity  ( )  const

ReturnsProperty field describing element connectivity for mesh. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a61), and [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a9).



<a id="a0c89c703a65b7523b2c5f89bad07e093" name="a0c89c703a65b7523b2c5f89bad07e093"></a>## [◆ ](#a0c89c703a65b7523b2c5f89bad07e093)deep\_copy() \[1/2\]

 [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) ansys::dpf::MeshedRegion::deep\_copy  ( )  const

Make a deep copy locally.





<a id="acdd5697fc951caef900b5ea145d79cbf" name="acdd5697fc951caef900b5ea145d79cbf"></a>## [◆ ](#acdd5697fc951caef900b5ea145d79cbf)deep\_copy() \[2/2\]

 [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) ansys::dpf::MeshedRegion::deep\_copy  ( [ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*)  const

Create a new [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml "Holds the mesh for a given region (body, faces, skin, ...)") on a server by copying all the data of this [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml "Holds the mesh for a given region (body, faces, skin, ...)").

Parameters \[in\]client[Client](classansys_1_1dpf_1_1Client.xhtml) instance designating the IP, port and protocol to use. Examples[DataExport.cpp](DataExport_8cpp-example.xhtml#a32).



<a id="a5809c805cc972f4958fab4375be4f8cb" name="a5809c805cc972f4958fab4375be4f8cb"></a>## [◆ ](#a5809c805cc972f4958fab4375be4f8cb)elementDescriptorByElementId()

 [ansys::dpf::ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) ansys::dpf::MeshedRegion::elementDescriptorByElementId  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *element\_id*)  const

Get [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) (type related information) from element id. .





<a id="a3056a0fc6d69ca8769e33de6be0cecf0" name="a3056a0fc6d69ca8769e33de6be0cecf0"></a>## [◆ ](#a3056a0fc6d69ca8769e33de6be0cecf0)elementScoping()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshedRegion::elementScoping  ( )  const

Returns[Scoping](classansys_1_1dpf_1_1Scoping.xhtml) describing elements of mesh. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a50), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a16).



<a id="a04833f8ff06d70a58259eddf7e7b350c" name="a04833f8ff06d70a58259eddf7e7b350c"></a>## [◆ ](#a04833f8ff06d70a58259eddf7e7b350c)elementShape()

 ansys::dpf::elements::EShape ansys::dpf::MeshedRegion::elementShape  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *element\_id*)  const

Get element shape.





<a id="a0e89e4e209380a10140c14cd91655907" name="a0e89e4e209380a10140c14cd91655907"></a>## [◆ ](#a0e89e4e209380a10140c14cd91655907)elementTypes()

 [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) ansys::dpf::MeshedRegion::elementTypes  ( )  const

ReturnsProperty field describing element types within mesh. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a67).



<a id="a4b0b3c40b12475dfafc3fa9c5bc5ac9c" name="a4b0b3c40b12475dfafc3fa9c5bc5ac9c"></a>## [◆ ](#a4b0b3c40b12475dfafc3fa9c5bc5ac9c)faceScoping()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshedRegion::faceScoping  ( )  const

Returns[Scoping](classansys_1_1dpf_1_1Scoping.xhtml) describing faces of mesh. 



<a id="a012ff219aea7e92a889a77611de00b3a" name="a012ff219aea7e92a889a77611de00b3a"></a>## [◆ ](#a012ff219aea7e92a889a77611de00b3a)fillCursor()

 void ansys::dpf::MeshedRegion::fillCursor  ( [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920)  *element\_index*,    [ElementCursor](classansys_1_1dpf_1_1ElementCursor.xhtml) &amp;  *cursor*   )  const

Get a cursor for given element.

Parameters \[in\]element\_indexIndex of element within mesh for which to get cursor. \[out\]cursorCursor for given element. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a58).



<a id="a4c0e5dd26ae85f7f9817848b6cf0e050" name="a4c0e5dd26ae85f7f9817848b6cf0e050"></a>## [◆ ](#a4c0e5dd26ae85f7f9817848b6cf0e050)hasBeam()

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

ReturnsIndication if mesh contains beam elements. 



<a id="a4d5721fffae74a36f5df08f17b3e8814" name="a4d5721fffae74a36f5df08f17b3e8814"></a>## [◆ ](#a4d5721fffae74a36f5df08f17b3e8814)hasOnlyBeam()

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

ReturnsIndication if mesh only contains beam elements. 



<a id="ad4bd4ba5896708b8c071dd45f342f1e0" name="ad4bd4ba5896708b8c071dd45f342f1e0"></a>## [◆ ](#ad4bd4ba5896708b8c071dd45f342f1e0)hasOnlyPoint()

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

ReturnsIndication if mesh only contains point elements. 



<a id="a07f2c499670bb730703defe33d7a2366" name="a07f2c499670bb730703defe33d7a2366"></a>## [◆ ](#a07f2c499670bb730703defe33d7a2366)hasOnlyShell()

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

ReturnsIndication if mesh only contains shell elements. 



<a id="a329260f43c0178f2789082717916799c" name="a329260f43c0178f2789082717916799c"></a>## [◆ ](#a329260f43c0178f2789082717916799c)hasOnlySkin()

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

ReturnsIndication if mesh only contains skin elements. 



<a id="ad731342d5494aba788fdf45406bae322" name="ad731342d5494aba788fdf45406bae322"></a>## [◆ ](#ad731342d5494aba788fdf45406bae322)hasOnlySolid()

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

ReturnsIndication if mesh only contains solid elements. 



<a id="aeea1bdb261048a2f951c4e14e557fcfc" name="aeea1bdb261048a2f951c4e14e557fcfc"></a>## [◆ ](#aeea1bdb261048a2f951c4e14e557fcfc)hasPoint()

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

ReturnsIndication if mesh contains point elements. 



<a id="a13ff7e2b797ca3b50732e0d1859f03d8" name="a13ff7e2b797ca3b50732e0d1859f03d8"></a>## [◆ ](#a13ff7e2b797ca3b50732e0d1859f03d8)hasPolygons()

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

ReturnsIndication if mesh contains Polygonal elements. 



<a id="a511d93666c76398d3553fbf697172c8c" name="a511d93666c76398d3553fbf697172c8c"></a>## [◆ ](#a511d93666c76398d3553fbf697172c8c)hasPolyhedrons()

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

ReturnsIndication if mesh contains Polyhedral elements. 



<a id="a1c6b2126a94dc0b94f01c2ae179ad44a" name="a1c6b2126a94dc0b94f01c2ae179ad44a"></a>## [◆ ](#a1c6b2126a94dc0b94f01c2ae179ad44a)hasPropField()

 bool ansys::dpf::MeshedRegion::hasPropField  ( [PropertyType](structansys_1_1dpf_1_1PropertyType.xhtml) const &amp;  *prop*)  const

ReturnsIndication that property type exists. Parameters \[in\]propProperty type of which to check existence. 



<a id="a606ffd0951d9f75cc632754a8619153c" name="a606ffd0951d9f75cc632754a8619153c"></a>## [◆ ](#a606ffd0951d9f75cc632754a8619153c)hasShell()

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

ReturnsIndication if mesh contains shell elements. 



<a id="a0410fcda938500f26b02dd149816e693" name="a0410fcda938500f26b02dd149816e693"></a>## [◆ ](#a0410fcda938500f26b02dd149816e693)hasSkin()

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

ReturnsIndication if mesh contains skin elements. 



<a id="a24ef139add0dbf2afee4fe4fc39da778" name="a24ef139add0dbf2afee4fe4fc39da778"></a>## [◆ ](#a24ef139add0dbf2afee4fe4fc39da778)hasSolid()

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

ReturnsIndication if mesh contains solid elements. 



<a id="aed167b03463f42d94d424797529eccad" name="aed167b03463f42d94d424797529eccad"></a>## [◆ ](#aed167b03463f42d94d424797529eccad)lengthUnit()

 [Unit](classansys_1_1dpf_1_1Unit.xhtml) ansys::dpf::MeshedRegion::lengthUnit  ( )  const

ReturnsLength unit for mesh. Examples[CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#a12), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a23).



<a id="acf7de56fc6905e8da6679ea9d8df2a5e" name="acf7de56fc6905e8da6679ea9d8df2a5e"></a>## [◆ ](#acf7de56fc6905e8da6679ea9d8df2a5e)name()

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

ReturnsName of the mesh. 



<a id="a1f12d06a08e8afe8fe59c0a8d6aee779" name="a1f12d06a08e8afe8fe59c0a8d6aee779"></a>## [◆ ](#a1f12d06a08e8afe8fe59c0a8d6aee779)namedSelection()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshedRegion::namedSelection  ( std::string const &amp;  *name*)  const

Returns[Scoping](classansys_1_1dpf_1_1Scoping.xhtml) for given named selection. Parameters \[in\]nameName of which to get scoping. Examples[CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#a17), and [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a37).



<a id="a482ae171f257bfe86c8e567f0882caa4" name="a482ae171f257bfe86c8e567f0882caa4"></a>## [◆ ](#a482ae171f257bfe86c8e567f0882caa4)nodesCoordinates()

 [Field](classansys_1_1dpf_1_1Field.xhtml) ansys::dpf::MeshedRegion::nodesCoordinates  ( )  const

Returns[Field](classansys_1_1dpf_1_1Field.xhtml) containing mesh node coordinates. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a66), [DataExport.cpp](DataExport_8cpp-example.xhtml#a18), and [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a6).



<a id="ad5df08993b7c588d9565ef1c1ea4813d" name="ad5df08993b7c588d9565ef1c1ea4813d"></a>## [◆ ](#ad5df08993b7c588d9565ef1c1ea4813d)nodeScoping()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshedRegion::nodeScoping  ( )  const

Returns[Scoping](classansys_1_1dpf_1_1Scoping.xhtml) describing nodes of mesh. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a48), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a14).



<a id="ac3a262bc236fda82374a462d7c9e240c" name="ac3a262bc236fda82374a462d7c9e240c"></a>## [◆ ](#ac3a262bc236fda82374a462d7c9e240c)numberOfElements()

 [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) ansys::dpf::MeshedRegion::numberOfElements  ( )  const

ReturnsNumber of elements in mesh. Examples[CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#a10), [DataExport.cpp](DataExport_8cpp-example.xhtml#a39), and [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a3).



<a id="af8ad6b50708b2c201a457c5da8e819da" name="af8ad6b50708b2c201a457c5da8e819da"></a>## [◆ ](#af8ad6b50708b2c201a457c5da8e819da)numberOfNodes()

 [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) ansys::dpf::MeshedRegion::numberOfNodes  ( )  const

ReturnsNumber of nodes in mesh. Examples[CompleteRST.cpp](CompleteRST_8cpp-example.xhtml#a9), [DataExport.cpp](DataExport_8cpp-example.xhtml#a40), and [ModelTest.cpp](ModelTest_8cpp-example.xhtml#a4).



<a id="a9581baba0973ffff79236c95a131f62a" name="a9581baba0973ffff79236c95a131f62a"></a>## [◆ ](#a9581baba0973ffff79236c95a131f62a)numNodesOfElement()

 int ansys::dpf::MeshedRegion::numNodesOfElement  ( [dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920)  *element\_index*)  const

Get number of nodes for element at given index.





<a id="aa7b984923ddd90379f08bc5b9831a95e" name="aa7b984923ddd90379f08bc5b9831a95e"></a>## [◆ ](#aa7b984923ddd90379f08bc5b9831a95e)prepareConstruction()

 void ansys::dpf::MeshedRegion::prepareConstruction  ( [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0)  *n\_nodes*,    [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0)  *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 \[in\]n\_nodesExpected number of nodes within mesh. \[in\]n\_elementsExpected number of elements within mesh. Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#a47), and [DataExport.cpp](DataExport_8cpp-example.xhtml#a6).



<a id="a198535c4c5a86ce1920cf2f5cd6c2d9d" name="a198535c4c5a86ce1920cf2f5cd6c2d9d"></a>## [◆ ](#a198535c4c5a86ce1920cf2f5cd6c2d9d)propField()

 [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) ansys::dpf::MeshedRegion::propField  ( [PropertyType](structansys_1_1dpf_1_1PropertyType.xhtml) const &amp;  *prop*)  const

ReturnsProperty field given by property type. Parameters \[in\]propProperty type of which to get property field. 



<a id="a4f7720c8b112b1d02eedcc4564986232" name="a4f7720c8b112b1d02eedcc4564986232"></a>## [◆ ](#a4f7720c8b112b1d02eedcc4564986232)setConnectivity()

 void ansys::dpf::MeshedRegion::setConnectivity  ( [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml)  *connectivity*) 

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

Parameters \[in\]connectivityConnectivity to set. 



<a id="a6521976e1c6a8ed3a1357c979cd380aa" name="a6521976e1c6a8ed3a1357c979cd380aa"></a>## [◆ ](#a6521976e1c6a8ed3a1357c979cd380aa)setElementTypes()

 void ansys::dpf::MeshedRegion::setElementTypes  ( [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml)  *element\_types*) 

Set element types property field.

Parameters \[in\]element\_typesElement types data to set.. 



<a id="a638d38d0400a6c64b85082a4c4beb105" name="a638d38d0400a6c64b85082a4c4beb105"></a>## [◆ ](#a638d38d0400a6c64b85082a4c4beb105)setLengthUnit()

 void ansys::dpf::MeshedRegion::setLengthUnit  ( [Unit](classansys_1_1dpf_1_1Unit.xhtml) const &amp;  *unit*) 

Set length unit for mesh.

Parameters \[in\]unitLength unit for mesh. Examples[DataExport.cpp](DataExport_8cpp-example.xhtml#a7).



<a id="a76b415d07d6609006546fe28dac4d45b" name="a76b415d07d6609006546fe28dac4d45b"></a>## [◆ ](#a76b415d07d6609006546fe28dac4d45b)setName()

 void ansys::dpf::MeshedRegion::setName  ( std::string const &amp;  *rhs*) 

Set mesh name.





<a id="afdcea89a088a5a05244abfa8a2457040" name="afdcea89a088a5a05244abfa8a2457040"></a>## [◆ ](#afdcea89a088a5a05244abfa8a2457040)setNamedSelectionScoping()

 void ansys::dpf::MeshedRegion::setNamedSelectionScoping  ( std::string const &amp;  *name*,    [Scoping](classansys_1_1dpf_1_1Scoping.xhtml)  *scoping*   ) 

Set a named selection scoping for mesh.

Parameters \[in\]nameNamed selection name. \[in\]scoping[Scoping](classansys_1_1dpf_1_1Scoping.xhtml "Define a set of entities by ids.") to set. 



<a id="ad5fbd4c5a82f47d45eba62536cba68a1" name="ad5fbd4c5a82f47d45eba62536cba68a1"></a>## [◆ ](#ad5fbd4c5a82f47d45eba62536cba68a1)setNodesCoordinates()

 void ansys::dpf::MeshedRegion::setNodesCoordinates  ( [Field](classansys_1_1dpf_1_1Field.xhtml)  *coordinates*) 

Set a field for mesh.

Parameters \[in\]coordinates[Field](classansys_1_1dpf_1_1Field.xhtml "Data for an entity.") to set. Examples[DataExport.cpp](DataExport_8cpp-example.xhtml#a33).



<a id="a2bc27437f9025696a0d07072bd4bafe1" name="a2bc27437f9025696a0d07072bd4bafe1"></a>## [◆ ](#a2bc27437f9025696a0d07072bd4bafe1)setPropertyField()

 void ansys::dpf::MeshedRegion::setPropertyField  ( std::string const &amp;  *name*,    [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml)  *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 \[in\]nameProperty name: See alsocommon\_property\_names. Parameters \[in\]property\_fieldProperty field to set.