There are few steps to build geometrical objects:
- To add points
- To add curves (lines) through the points
- To define cycles for surfaces through the
- To add surfaces (faces) through cycles
- To define surface cycles through the surfaces
- To add volumes through surface cycles.
All is well written in Gmsh's docs.