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

# MeshAssembly Class Reference

Part of [Data](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data)

describes a finite element mesh

## Public Types

| Type | Name |
| - | - |
|  typedef std::map\< [string\_pair\_type](#a128c69f0431efa4e8fd8709f8bc1feda), groups::ElementSet > | [map\_elementset\_type](#ae7b41a2f6ccde15f8aec3506307e020c) a map which associates a string pair ident to an element set. The ident of each set is then: first string: part ident (if empty, it will be a global set), element ident. |
|  typedef std::map\< [string\_pair\_type](#a128c69f0431efa4e8fd8709f8bc1feda), groups::NodeSet > | [map\_nodeset\_type](#a16956f2074794ce5c06c1448d2ebcb56) a map which associates a string pair ident to a node set The ident of each set is then: first string: part ident (if empty, it will be a global set), element ident. |
|  typedef std::map\< string, [uint](#a2c83b7348a2acedf114ab5847ad3ffcd) > | [map\_stringindex\_type](#a50a53dbaea16fbf9aad6fe434be84ad2) a map which associates integer numbers (often indices) to unique string idents (keys) |
| enum | [mesh\_type](#a39747b5e329ff6cad0c2c9458e09ab61) \{ [MESH\_FEM3D](#a39747b5e329ff6cad0c2c9458e09ab61a6cf2ba534d3b7dc292674624fe2fb804), [MESH\_RAY](#a39747b5e329ff6cad0c2c9458e09ab61adbc5602a93acf50486dcd4dbe4615322), [MESH\_PIXEL](#a39747b5e329ff6cad0c2c9458e09ab61a0a0b817fa04782e012ed8a71d47a4077), [MESH\_VOXEL](#a39747b5e329ff6cad0c2c9458e09ab61addf58eb35f91b20a257de237ac0ee4e9) } an enum that collects several mesh types |
|  typedef std::vector\< boost::shared\_ptr\< MeshPart > > | [meshpart\_container\_type](#a74eb338994af85db5ed9dc1008e14616) a vector of managed *MeshPart* pointers |
|  typedef boost::function\< void(boost::shared\_ptr\< MeshPart > [part](#a67501b8786da31b7074b2f6c14138fa7)) > | [part\_callback\_type](#aa09603bb39d4601814c67e12d7b5e6a5) a callback function being invoked when deleting a *MeshPart* |
|  typedef common::IteratorWrapper\< [meshpart\_container\_type](#a74eb338994af85db5ed9dc1008e14616) > | [part\_iterator](#a62f63a2411f614df93d7bf4d251c4a89) a simple iterator for iterating through the part container |
|  typedef common::ReverseIteratorWrapper\< [meshpart\_container\_type](#a74eb338994af85db5ed9dc1008e14616) > | [reverse\_part\_iterator](#a6a053b98f240f79ff317e47b5b51aa69) a simple iterator for iterating through the part container |
|  typedef std::map\< string, boost::shared\_ptr\< Section > > | [section\_container\_type](#a4704b9efa9ead57768104ff9afc82a92) a map which associates a string ident to managed pointers of *Section* objects. |
|  typedef common::IteratorWrapper\< [section\_container\_type](#a4704b9efa9ead57768104ff9afc82a92) > | [section\_iterator](#a29b7dfe47e419cb349fd7dabf937fedc) a simple iterator for iterating through the section container |
|  typedef std::pair\< string, string > | [string\_pair\_type](#a128c69f0431efa4e8fd8709f8bc1feda) a pair of strings |
|  typedef number | [uint](#a2c83b7348a2acedf114ab5847ad3ffcd) number type |
|  typedef unsigned short | [ushort](#ab95f123a6c9bcfee6a343170ef8c5f69) unsigned short type |

## Public Member Functions

| Type | Name |
| - | - |
| element::ETManager | [element\_types](#ab46a13749f4261bf0ad11670e851283c) () returns m\_element\_types by reference |
| groups::ElementSet | [elementSet](#a993e68c0140ccc2962f3f74ce67b4e7d) ([string\_pair\_type](#a128c69f0431efa4e8fd8709f8bc1feda) theident) reference getter for the specified element set |
| [map\_elementset\_type](#ae7b41a2f6ccde15f8aec3506307e020c) | [elementSets](#a3156fd41796bbaeb8beed456c1aec70a) () const reference getter for m\_elementSets |
| Eigen::Vector3i | [gridDimension](#ab61e0918d34353bb62ce870f218c1ddb) () |
| groups::NodeSet | [nodeSet](#a2ef949fe1d7aaec54752999d07f17552) ([string\_pair\_type](#a128c69f0431efa4e8fd8709f8bc1feda) theident) reference getter for the specified node set |
| [map\_nodeset\_type](#a16956f2074794ce5c06c1448d2ebcb56) | [nodeSets](#a703a617a0b6681acd20338667f7befb1) () const reference getter for m\_nodeSets |
| size\_t | [numParts](#a9f1054cb877d246f27121fc98af47ebf) () const |
| MeshPart | [part](#a67501b8786da31b7074b2f6c14138fa7) ([uint](#a2c83b7348a2acedf114ab5847ad3ffcd) theindex) getter for a specific part |
| MeshPart | [part](#a3e063ad835d0cfcc12ede92702e6731c) (string theident) getter for a specific part |
| Section | [section](#a1aad17c456ad972f40c515912e1e798d) (string theident) reference brief getter for a specific section |
| SectionTypeManager | [section\_types](#a9a36d93e6a070883ec70f6217cb3f6c1) () returns m\_section\_types by reference |
| [mesh\_type](#a39747b5e329ff6cad0c2c9458e09ab61) | [type](#a3c883136da5f87f250ba45d2d84ff878) () returns the mesh type |

## Detailed Description

describes a finite element mesh

A finite element mesh contains all nodes, elements (and faces/edges) which may be associated to individual parts. Parts are individual scopes, for example multiple points may have the same index, but belong to different parts.

## Member Enumeration Documentation

### mesh\_type

```cpp theme={null}
enum mesh_type
```

an enum that collects several mesh types

| Enumerator | |
| - | - |
| MESH\_FEM3D | a three-dimensional FEM mesh |
| MESH\_RAY | a 1d ray grid, i.e. single part with nodes following the numbering scheme: index = i\_x |
| MESH\_PIXEL | a pixel grid, i.e. single part with nodes following the numbering scheme: index = i\_y + i\_x\*n\_y |
| MESH\_VOXEL | a voxel grid, i.e. single part with nodes following the numbering scheme: index = i\_z + i\_y\*n\_z + i\_x\*n\_y\*n\_z |

## Member Function Documentation

### element\_types()

```cpp theme={null}
element::ETManager element_types()
```

returns m\_element\_types by reference

**Returns**

a reference to m\_element\_types

### elementSet()

```cpp theme={null}
groups::ElementSet elementSet(string_pair_type theident)
```

reference getter for the specified element set

**Parameters**

| Name | Description |
| - | - |
| theident | ident of an existing element set |

**Returns**

a reference to the element set

### elementSets()

```cpp theme={null}
map_elementset_type elementSets() const
```

reference getter for m\_elementSets

**Returns**

a reference to m\_elementSets

### gridDimension()

```cpp theme={null}
Eigen::Vector3i gridDimension()
```

**Returns**

a reference to

**See also**

m\_grid\_dimension

### nodeSet()

```cpp theme={null}
groups::NodeSet nodeSet(string_pair_type theident)
```

reference getter for the specified node set

**Parameters**

| Name | Description |
| - | - |
| theident | ident of an existing node set |

**Returns**

a reference to the node set

### nodeSets()

```cpp theme={null}
map_nodeset_type nodeSets() const
```

reference getter for m\_nodeSets

**Returns**

a reference to m\_nodeSets

### numParts()

```cpp theme={null}
size_t numParts() const
```

**Returns**

the number of allocated parts

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

```cpp theme={null}
MeshPart part(uint theindex)
```

getter for a specific part

**Parameters**

| Name | Description |
| - | - |
| theindex | the index of an existing part |

**Returns**

a reference to the part with given index

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

```cpp theme={null}
MeshPart part(string theident)
```

getter for a specific part

**Parameters**

| Name | Description |
| - | - |
| theident | the ident of an existing part |

**Returns**

a reference to the part with given ident

### section()

```cpp theme={null}
Section section(string theident)
```

reference brief getter for a specific section

**Parameters**

| Name | Description |
| - | - |
| theident | ident of an existing section |

**Returns**

a reference to the section

### section\_types()

```cpp theme={null}
SectionTypeManager section_types()
```

returns m\_section\_types by reference

**Returns**

a reference to m\_section\_types

### type()

```cpp theme={null}
mesh_type type()
```

returns the mesh type

**Returns**

a reference to

**See also**

m\_type
