# 3DMESH Command [GstarCAD 2015](../../Index.md) → [Commands](../%28Commands%29.md) → [3D](%283D%29.md) Create a free-form polygon mesh. ## Command Access: > **Menu:** Draw \> Modeling \> Meshes \> 3D Mesh > > **Command entry:** 3DMESH ## Command Prompts: > Number of vertices along primary mesh axis (between 2 and 256):*Enter a value between 2 and 256* > > Number of vertices along secondary mesh axis (between 2 and 256):*Enter a value between 2 and 256* > > The mesh is defined by the vertices along primary mesh axis (*M* direction) and secondary mesh axis (*N* direction). The location of each vertex in the mesh is defined by *m* and *n*, the row and column indices of the vertices. Defining vertices begins with vertex (0,0). You must supply the coordinate locations for each vertex in row > *m* before specifying vertices in row *m* \+ 1\. > > Vertices may be any distance from each other. The *M* and > *N* direction of a mesh depends on the location of its vertices. > > 3DMESH polygon meshes are always open in both *M* and > *N* directions. You can close a mesh with PEDIT. ## Other versions with matching text [GstarCAD 8 (2013–2014)](../../../2013/Commands/3D/3DMESH%20Command.md)