# Mesh3D

[![Static Badge](https://img.shields.io/badge/Source%20Code-06D40C?style=plastic\&logo=github\&color=FFFFF)](https://github.com/LorenzoPiu/aPriori/blob/main/src/aPriori/DNS.py#L2460-L2661)

### **aPriori.DNS.**<mark style="color:red;">**Mesh3D**</mark>**(**&#x73;elf, folder\_pat&#x68;**):**

***

A class used to store a 3D mesh.

This class takes three Scalar3D objects representing the X, Y, and Z coordinates of a 3D mesh. It checks that the input objects are instances of the Scalar3D class and have the same shape. The shape of the mesh is expected to be a list of three integers. The class also provides properties to access the unique values of the X, Y, and Z coordinates and their 3D representations. It also provides properties to access the X, Y, and Z coordinates at the midpoints along each axis.

### Attributes

*   `shape` (list):&#x20;

    The shape of the 3D mesh.
*   `Nx` (int):&#x20;

    The size of the mesh along the X axis.
*   `Ny` (int):&#x20;

    The size of the mesh along the Y axis.
*   `Nz` (int):&#x20;

    The size of the mesh along the Z axis.
*   `X` (Scalar3D):&#x20;

    The X coordinates of the mesh.
*   `Y` (Scalar3D):&#x20;

    The Y coordinates of the mesh.
*   `Z` (Scalar3D):&#x20;

    The Z coordinates of the mesh.

### Methods

*   `X1D()`:&#x20;

    Returns the unique values of the X coordinates.
*   `Y1D()`:&#x20;

    Returns the unique values of the Y coordinates.
*   `Z1D()`:&#x20;

    Returns the unique values of the Z coordinates.
*   `X3D()`:&#x20;

    Returns the 3D representation of the X coordinates.
*   `Y3D()`:&#x20;

    Returns the 3D representation of the Y coordinates.
*   `Z3D()`:&#x20;

    Returns the 3D representation of the Z coordinates.
*   `X_midY()`:&#x20;

    Returns the X coordinates at the midpoint along the Y axis.
*   `X_midZ()`:&#x20;

    Returns the X coordinates at the midpoint along the Z axis.
*   `Y_midX()`:&#x20;

    Returns the Y coordinates at the midpoint along the X axis.
*   `Y_midZ()`:&#x20;

    Returns the Y coordinates at the midpoint along the Z axis.
*   `Z_midX()`:&#x20;

    Returns the Z coordinates at the midpoint along the X axis.
*   `Z_midY()`:&#x20;

    Returns the Z coordinates at the midpoint along the Y axis.
