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