# 3DMESH Command [GstarCAD 2018](Help%20System/GSTARCAD/2018/Index.md) → [Commands](Help%20System/GSTARCAD/2018/Commands/(Commands).md) → [3D](Help%20System/GSTARCAD/2018/Commands/3D/(3D).md) The 3DMESH command is used to create polygonal mesh in any styles. ## Command Access: > **Ribbon:** 3D \> Mesh \> 3D Mesh > **Menu:** Draw \> Modeling \> Meshes \> 3D Mesh > **Command:** 3DMESH ## Command Prompts: > Enter size of mesh in M direction: > Enter size of mesh in N direction: > Specify location for vertex (0, 0): > Specify location for vertex (0, 1): ## Function Description: The density of mesh controls number of mosaic surface. The mesh is defined by M×N vertexes of rectangles, this is similar to row and column of grid. It is a traditional way to create mesh by 3DMESH command and designed for program operation rather than manual operation. **Relative Glossary:** **Size of mesh in M direction:** Specify size of mesh in M direction, it is a value between 2 and 256\. **Size of mesh in N direction:** Specify size of mesh in N direction, it is a value between 2 and 256\. The value of M×N must be equal to the specified vertex number. **Location for vertex (0, 0):** Specify coordinates for each vertex. Users could input two dimension or three dimension coordinates. The location for each vertex is determined by the M and N (M is the subscript of row and N is the subscript of column). Define vertex coordinate beginning with (0, 0\) and firstly specify the vertex coordinate with M, and then specify M\+1. The distance of vertex could be any value and directions of M and N are determined by their coordinate locations. Meshes created by 3DMESH command are open in M and N direction; users could use PEDIT command to close them. ![](Help%20System/GSTARCAD/2018/assets/GCAD_GCR/images/3DMESH-1.GIF) ## Other versions with matching text [GstarCAD 2016](../../../2016/Commands/3D/3DMESH%20Command.md) · [GstarCAD 2017](../../../2017/Commands/3D/3DMESH%20Command.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/Commands/3D/3DMESH%20Command.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/Commands/3D/3DMESH%20Command.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/Commands/3D/3DMESH%20Command.md)