# EDGESURF Command [GstarCAD 2012](../../Index.md) → [Commands](../%28Commands%29.md) → [E](%28E%29.md) ## Function Description: > Create a three-dimensional polygon mesh **Menu:** > Draw\>Modeling\>Meshes\>Edge Mesh **Command Entry:** > EDGESURF **Command Prompt:** > Select the first of four connected entities for edge surface: > > You must select the four adjoining edges that define the mesh patch. The edges can be lines, arcs, splines, or open 2D or 3D polylines. The edges must touch at their endpoints to form a topologically rectangular closed path. > > You can select the four edges in any order. The first edge determines the > *M* direction of the generated mesh, which extends from the endpoint closest to the selection point to the other end. The two edges that touch the first edge form the > *N* edges of the mesh. ## Other versions with matching text [GstarCAD 2011](../../../2011/Commands/E/EDGESURF%20Command.md)