public void CreateGeometry() { GMshNativeMethods.gmshModelMeshCreateGeometry(ref ierr); if (ierr != 0) { throw new GMshException(ierr); } }