Mesh3D
Last updated
Last updated
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.
shape
(list):
The shape of the 3D mesh.
Nx
(int):
The size of the mesh along the X axis.
Ny
(int):
The size of the mesh along the Y axis.
Nz
(int):
The size of the mesh along the Z axis.
X
(Scalar3D):
The X coordinates of the mesh.
Y
(Scalar3D):
The Y coordinates of the mesh.
Z
(Scalar3D):
The Z coordinates of the mesh.
X1D()
:
Returns the unique values of the X coordinates.
Y1D()
:
Returns the unique values of the Y coordinates.
Z1D()
:
Returns the unique values of the Z coordinates.
X3D()
:
Returns the 3D representation of the X coordinates.
Y3D()
:
Returns the 3D representation of the Y coordinates.
Z3D()
:
Returns the 3D representation of the Z coordinates.
X_midY()
:
Returns the X coordinates at the midpoint along the Y axis.
X_midZ()
:
Returns the X coordinates at the midpoint along the Z axis.
Y_midX()
:
Returns the Y coordinates at the midpoint along the X axis.
Y_midZ()
:
Returns the Y coordinates at the midpoint along the Z axis.
Z_midX()
:
Returns the Z coordinates at the midpoint along the X axis.
Z_midY()
:
Returns the Z coordinates at the midpoint along the Y axis.