Generate Brick Mesh

version 1.0.0 (2 KB) by Ayad Al-Rumaithi
Generates brick mesh with example


Updated 14 May 2021

View License

This function generates brick mesh according to grid set by vectors xx, yy, and zz.
[Nodes, Rectangles]=Rectangles_Mesh(xx,yy);
[Nodes3D,Bricks] = Mesh2D_to_Mesh3D(Nodes,Rectangles,zz);
xx, yy, and zz are vectors for grids of size (Nx,1) , (Ny,1), and (Nz,1) , respectively.
Nodes3D (Nx*Ny*Nz,3) is a matrix of coordinates of the mesh nodes.
Bricks((Nx-1)*(Ny-1)*(Nz-1),8) is a matrix of nodes connectivity for each element in right hand rule direction.
Example file is provided

Cite As

Ayad Al-Rumaithi (2022). Generate Brick Mesh (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!