What does 3DMESH do?
3DMESH creates a polygon mesh by defining a rectangular grid of vertices in the M and N directions. You specify the number of vertices in each direction and then define the position of every vertex using 2D or 3D coordinates.
The command provides precise control over the shape of the mesh and is particularly useful for creating irregular surfaces from known coordinate points. GstarCAD describes it as a traditional mesh creation method that is also well suited to scripted or programmed workflows.
How to use the command
- Type
3DMESH, then press Enter. - Enter the number of vertices required in the M direction.
- Enter the number of vertices required in the N direction.
- Specify the location of every vertex when prompted.
- After the final vertex is specified, GstarCAD creates the polygon mesh.
Command: 3DMESH ↵
Enter size of mesh in M direction: 3 ↵
Enter size of mesh in N direction: 3 ↵
Specify location for vertex (0, 0): 0,0,0
Specify location for next vertex: 0,50,10
Specify location for next vertex: 0,100,0
Key 3DMESH settings
The shape and resolution of the mesh are determined by the M and N grid sizes and the coordinates assigned to each vertex.
Practical example: create a simple terrain surface
Suppose you have nine surveyed points arranged in a 3 × 3 grid, with different Z elevations. Run 3DMESH, enter 3 for both the M and N directions and then enter the X, Y and Z coordinates of all nine points.
GstarCAD connects the vertices to form a polygon mesh representing the changing elevations. The mesh remains open in the M and N directions, but it can later be closed using PEDIT when required.
Tip
Use 3DMESH when you need exact control over every vertex. For standard mesh primitives such as boxes, cylinders, spheres or toruses, the MESH command is usually faster.